Skip to content

Instantly share code, notes, and snippets.

@mike-north
Created April 14, 2015 09:27
Show Gist options
  • Save mike-north/1c0f73d3d960b46576ab to your computer and use it in GitHub Desktop.
Save mike-north/1c0f73d3d960b46576ab to your computer and use it in GitHub Desktop.
PhantomJS 2.0 for travis-ci
---
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