Created
April 14, 2015 09:27
-
-
Save mike-north/1c0f73d3d960b46576ab to your computer and use it in GitHub Desktop.
PhantomJS 2.0 for travis-ci
This file contains 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" | |
- "iojs" | |
sudo: false | |
cache: | |
directories: | |
- node_modules | |
before_install: | |
- "npm config set spin false" | |
- "npm install -g npm@^2" | |
# Download the right version of phantomjs 2.0.0, and place it before everything else in our $PATH | |
before_install: | |
- mkdir 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 | |
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