Skip to content

Instantly share code, notes, and snippets.

@cotsog
Created May 4, 2016 15:20
Show Gist options
  • Save cotsog/a66d39c7acd5ca0f30490d9fa03b709e to your computer and use it in GitHub Desktop.
Save cotsog/a66d39c7acd5ca0f30490d9fa03b709e to your computer and use it in GitHub Desktop.
Cache PhantomJS
cache:
directories:
- travis-phantomjs
before_install:
- mkdir travis-phantomjs || true
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment