Last active
September 21, 2015 15:21
-
-
Save poteto/0c8746c5ac53ab0d3656 to your computer and use it in GitHub Desktop.
Install PhantomJS 2 for TravisCI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
language: node_js | |
node_js: | |
- "0.12" | |
sudo: false | |
cache: | |
directories: | |
- node_modules | |
# https://github.com/travis-ci/travis-ci/issues/3225 | |
# Explicitly use PhantomJS 2.0 from image | |
before_install: | |
- mkdir -p travis-phantomjs | |
- wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 | |
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs | |
- export PATH=$PWD/travis-phantomjs:$PATH | |
- "npm config set spin false" | |
- "npm install -g npm@^2" | |
install: | |
- npm install -g bower | |
- npm install | |
- bower install | |
script: | |
- npm test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment