update ruby versions for testing, allow rbx failure, and cache phantomjs downloads
This commit is contained in:
parent
ada76dfda3
commit
917a070220
20
.travis.yml
20
.travis.yml
|
@ -2,18 +2,21 @@ sudo: false
|
|||
script: bundle exec rake
|
||||
before_script: ${PHANTOMJS:-phantomjs} --version
|
||||
before_install:
|
||||
- mkdir travis-phantomjs2 travis-phantomjs21
|
||||
- wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs2/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
|
||||
- tar -xvf $PWD/travis-phantomjs2/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs2
|
||||
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/phantomjs-2.1-linux-x86_64.tar.bz2
|
||||
- tar -xvf $PWD/phantomjs-2.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs21 --strip-components 2 phantomjs-2.1.1-linux-x86_64/bin/phantomjs
|
||||
- mkdir -p travis-phantomjs2 travis-phantomjs21
|
||||
- if [ ! -f $PWD/travis-phantomjs2/phantomjs ]; then wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs2/phantomjs-2.0.0-ubuntu-12.04.tar.bz2; tar -xvf $PWD/travis-phantomjs2/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs2; fi
|
||||
- if [ ! -f $PWD/travis-phantomjs21/phantomjs ]; then wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/phantomjs-2.1-linux-x86_64.tar.bz2; tar -xvf $PWD/phantomjs-2.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs21 --strip-components 2 phantomjs-2.1.1-linux-x86_64/bin/phantomjs; fi
|
||||
- chmod +x $PWD/travis-phantomjs21/phantomjs
|
||||
cache:
|
||||
directories:
|
||||
- $PWD/travis-phantomjs2
|
||||
- $PWD/travis-phantomjs21
|
||||
|
||||
rvm:
|
||||
- 2.3.0
|
||||
- 2.2.2
|
||||
- 2.1.6
|
||||
- 2.0.0
|
||||
- rbx-2
|
||||
- rbx
|
||||
gemfile:
|
||||
- Gemfile
|
||||
env:
|
||||
|
@ -32,11 +35,12 @@ matrix:
|
|||
- rvm: 2.2.2
|
||||
gemfile: Gemfile
|
||||
env: PHANTOMJS=$PWD/travis-phantomjs21/phantomjs
|
||||
- rvm: 2.2.2
|
||||
- rvm: 2.2.5
|
||||
gemfile: gemfiles/Gemfile.capybara_master
|
||||
env: PHANTOMJS=$PWD/travis-phantomjs2/phantomjs
|
||||
- rvm: 2.2.2
|
||||
- rvm: 2.3.1
|
||||
gemfile: gemfiles/Gemfile.capybara_master
|
||||
env: PHANTOMJS=$PWD/travis-phantomjs21/phantomjs
|
||||
allow_failures:
|
||||
- gemfile: gemfiles/Gemfile.capybara_master
|
||||
- rvm: rbx
|
||||
|
|
Loading…
Reference in New Issue