Skip to content

Commit 98104ad

Browse files
committed
Vendor PhantomJS 2.1.1 in our repository
As of today Travis CI supports PhantomJS 1.9. Previously, the CI script (in `.travis.yml`) tried to fetch it before each build. But this is inefficient and the official channel of distribution for PhantomJS ofter drops the connection and the build fails miseably. When Travis CI will support PhantomJS 2.1 we can remove it and review the CI setup again.
1 parent 0ce7649 commit 98104ad

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ sudo: false
33
cache: bundler
44
install: true
55
before_install:
6-
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
7-
- tar -xjf phantomjs-2.1.1-linux-x86_64.tar.bz2
8-
- mv phantomjs-2.1.1-linux-x86_64 phantomjs
9-
- export PATH=$PWD/phantomjs/bin:$PATH
6+
- mkdir $PWD/vendor/phantomjs && tar -xjf $PWD/vendor/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/vendor/phantomjs --strip-components=1
7+
- export PATH=$PWD/vendor/phantomjs/bin:$PATH
108
- phantomjs --version
119
env:
1210
global:
22.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)