Skip to content

Instantly share code, notes, and snippets.

@poteto
Last active September 21, 2015 15:21
Show Gist options
  • Save poteto/0c8746c5ac53ab0d3656 to your computer and use it in GitHub Desktop.
Save poteto/0c8746c5ac53ab0d3656 to your computer and use it in GitHub Desktop.
Install PhantomJS 2 for TravisCI
---
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