Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 1d86b4e

Browse files
committed
Upgrade travis testing to PhantomJS 2.1.1.
1 parent 8e82beb commit 1d86b4e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cache:
77
directories:
88
- $HOME/.npm
99
- $HOME/.yarn-cache
10+
- travis_phantomjs
1011

1112
env:
1213
global:
@@ -30,6 +31,18 @@ branches:
3031
- master
3132

3233
before_install:
34+
# Upgrade PhantomJS.
35+
- |
36+
export PHANTOMJS_VERSION=2.1.1
37+
export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH
38+
if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then
39+
rm -rf $PWD/travis_phantomjs
40+
mkdir -p $PWD/travis_phantomjs
41+
wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
42+
tar -xvf phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs
43+
fi
44+
phantomjs -v
45+
3346
# Use exact Node version.
3447
- nvm use $TRAVIS_NODE_VERSION
3548

0 commit comments

Comments
 (0)