Created
April 5, 2017 23:00
-
-
Save jpic/93c0ffb5227d0b05e59e996c9a266eaa to your computer and use it in GitHub Desktop.
PhantomJS 2.1.1 Travis-CI recipe
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
before_script: | |
- set -eux; | |
export PHANTOMJS_VERSION=2.1.1; | |
phantomjs --version; | |
export PATH=$HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH; | |
phantomjs --version; | |
if [ "$(phantomjs --version)" != "$PHANTOMJS_VERSION" ]; then | |
rm -rf $HOME/travis_phantomjs; | |
mkdir -p $HOME/travis_phantomjs; | |
if [ ! -f $HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 ]; then | |
travis_retry wget | |
https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 | |
-O $HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; | |
fi; | |
tar -xvf | |
$HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 | |
-C $HOME/travis_phantomjs; | |
fi; | |
phantomjs --version; | |
set +eux | |
cache: | |
directories: | |
- $HOME/travis_phantomjs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment