1 | sudo: false
|
2 | language: node_js
|
3 | node_js:
|
4 | - 6
|
5 | cache:
|
6 | directories:
|
7 | - "travis_phantomjs"
|
8 | before_install:
|
9 | - "export PHANTOMJS_VERSION=2.1.1"
|
10 | - "hash -r"
|
11 | - "phantomjs --version"
|
12 | - "export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH"
|
13 | - "hash -r"
|
14 | - "phantomjs --version"
|
15 | - "if [ $(phantomjs --version) != \"$PHANTOMJS_VERSION\" ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
|
16 | - "hash -r"
|
17 | - "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"
|
18 | - "if [ $(phantomjs --version) != \"$PHANTOMJS_VERSION\" ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
|
19 | - "hash -r"
|
20 | - "phantomjs --version" |
\ | No newline at end of file |