forked from teampoltergeist/poltergeist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (53 loc) · 1.8 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
dist: trusty
sudo: false
script: bundle exec rake
before_script: ${PHANTOMJS:-phantomjs} --version
before_install:
- mkdir -p travis-phantomjs2 travis-phantomjs21
- if [ ! -f $PWD/travis-phantomjs2/phantomjs ]; then wget https://github.com/Pyppe/phantomjs2.0-ubuntu14.04x64/raw/master/bin/phantomjs -O $PWD/travis-phantomjs2/phantomjs; 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-phantomjs2/phantomjs $PWD/travis-phantomjs21/phantomjs
- gem update bundler
cache:
directories:
- $PWD/travis-phantomjs2
- $PWD/travis-phantomjs21
rvm:
- 2.3.3
- 2.2.2
- 2.1.6
- rbx-3
gemfile:
- Gemfile
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- POLTERGEIST_TEST_HOST=poltergeist.test.com
addons:
hosts:
# Used to test custom host driver feature
- poltergeist.test.com
matrix:
include:
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.1_9_3
- rvm: jruby-19mode
gemfile: gemfiles/Gemfile.1_9_3
- rvm: 2.0.0
gemfile: gemfiles/Gemfile.2_0_0
- rvm: 2.2.2
gemfile: Gemfile
env: PHANTOMJS=$PWD/travis-phantomjs2/phantomjs
- rvm: 2.4.1
gemfile: Gemfile
env: PHANTOMJS=$PWD/travis-phantomjs21/phantomjs
- rvm: 2.3.3
gemfile: gemfiles/Gemfile.capybara_master
env: PHANTOMJS=$PWD/travis-phantomjs21/phantomjs
- rvm: jruby-9.1.7.0
gemfile: Gemfile
env: PHANTOMJS=$PWD/travis-phantomjs21/phantomjs
allow_failures:
- gemfile: gemfiles/Gemfile.capybara_master
- rvm: jruby-9.1.7.0
- rvm: rbx-3