Skip to content

Commit 908d4fc

Browse files
committed
use phantomjs 2.1.1 (instead of 1.9.8 which is travis default)
per: travis-ci/travis-ci#3225 (comment)
1 parent 9b8b6e7 commit 908d4fc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@ language: node_js
22
node_js:
33
- "0.10"
44

5+
cache:
6+
directories:
7+
- "travis_phantomjs"
8+
9+
before_install:
10+
- export PHANTOMJS_VERSION=2.1.1
11+
- phantomjs --version
12+
- export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH
13+
- phantomjs --version
14+
- if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi
15+
- if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi
16+
- if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi
17+
- phantomjs --version
18+
519
before_script:
620
- export DISPLAY=:99.0
721
- export PHANTOMJS_BIN=/usr/local/phantomjs/bin/phantomjs

0 commit comments

Comments
 (0)