Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Try fixing yarn to 0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Nov 15, 2016
1 parent 2904fb9 commit 7548dc7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
9 changes: 1 addition & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ matrix:
fast_finish: true

before_install:
# https://yarnpkg.com/en/docs/install-ci#travis-tab
# Repo for newer Node.js versions
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
# Repo for Yarn
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn
- npm install -g [email protected]

# cache node modules
cache:
Expand Down
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ environment:
matrix:
- nodejs_version: '6'

# stick to npm
PHENOMIC_TEST_WITH_YARN: 0

version: "{build}"
build: off
deploy: off
Expand Down
16 changes: 9 additions & 7 deletions scripts/utils/test-folder.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ export default async function test(
try {
const targetModules = `${ target }/node_modules`

let yarn
try {
await exec("yarn --version")
yarn = true
}
catch (e) {
yarn = false
let yarn = process.env.PHENOMIC_TEST_WITH_YARN || true
if (yarn) {
try {
await exec("yarn --version")
yarn = true
}
catch (e) {
yarn = false
}
}

await cleanup()
Expand Down

0 comments on commit 7548dc7

Please sign in to comment.