Skip to content

Commit

Permalink
Ensure CI has latest yarn.
Browse files Browse the repository at this point in the history
The bizarre failures on CI are related to the super old Yarn version
in use on the Trusty arch (0.17.5), and seem to randomly fail based
on which CI image a build runs on (super frustratingly :P ).

This updates our Travis config to ensure the latest yarn is installed
(and also updates the mechansim we use to get phantom so that it works
across both Trusty and Precise images).
  • Loading branch information
rwjblue committed Aug 13, 2017
1 parent 59bf5cb commit 49a66fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
language: node_js
sudo: false
dist: trusty
node_js:
- "7"

cache:
yarn: true

before_install:
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
- "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
- "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
- "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
- "phantomjs --version"
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn global add phantomjs-prebuilt
- phantomjs --version

install:
- yarn
- yarn install --no-lockfile --no-interactive
- ./node_modules/.bin/bower install

script:
Expand Down

0 comments on commit 49a66fe

Please sign in to comment.