Skip to content

Commit

Permalink
Install PhantomJS 2.1.1 on Travis CI if not available
Browse files Browse the repository at this point in the history
  • Loading branch information
hkdobrev committed Aug 24, 2017
1 parent 2371e5b commit 4c3561a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,23 @@ branches:
cache:
directories:
- $HOME/.composer/cache
- $HOME/travis_phantomjs

notifications:
email: false
slack:
secure: ixWu6kWtNIlzzdImpu4MdvGYpA6ZPp/dQpMAp6FDO2oHHB55J9ossBYtVtBXPCDs9OxqfQl2yqbE+TkhfIfkZqIbhvX2+CiIomvYSKZDvryUlCfbfV29behmSVIVYvg3b8Tba+nAyZeJA2guUyAy02WGr3n4I+PDgZC3Wa/mv94=

before_install: travis_retry composer selfupdate
before_install:
- travis_retry composer selfupdate

- phantomjs --version
- export PATH=$HOME/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
- phantomjs --version
- if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $HOME/travis_phantomjs; mkdir -p $HOME/travis_phantomjs; fi
- if [ $(phantomjs --version) != '2.1.1' ]; then travis_retry wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $HOME/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi
- if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $HOME/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $HOME/travis_phantomjs; fi
- phantomjs --version

install:
- if [ "$DEPS" = "normal" ]; then travis_retry composer install --no-interaction; fi;
Expand Down

0 comments on commit 4c3561a

Please sign in to comment.