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 ca34c3e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ before_install:
- 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
# trying 0.16.1 because https://github.com/yarnpkg/yarn/issues/1838
- sudo apt-cache policy yarn
- sudo apt-get install -y -qq yarn=0.16.1-1

# 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 ca34c3e

Please sign in to comment.