forked from spree-contrib/spree_mailchimp_ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (51 loc) · 1.56 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
57
58
59
60
sudo: required
dist: trusty
language: ruby
addons:
chrome: stable
postgresql: 9.4
env:
- DB=postgres CC_TEST_REPORTER_ID=82abdd7000f5b0178c038869d1cf83e4374f3ee4129e1f214ab3ac534d4388d2
- DB=mysql
gemfile:
- gemfiles/spree_3_3.gemfile
- gemfiles/spree_3_5.gemfile
- gemfiles/spree_3_7.gemfile
- gemfiles/spree_4_0.gemfile
- gemfiles/spree_master.gemfile
script:
- bundle exec rake test_app
- bundle exec rake spec
rvm:
- 2.3.8
- 2.4.4
- 2.5.1
matrix:
allow_failures:
- gemfile: gemfiles/spree_master.gemfile
exclude:
- rvm: 2.3.8
gemfile: gemfiles/spree_4_0.gemfile
- rvm: 2.4.4
gemfile: gemfiles/spree_4_0.gemfile
- rvm: 2.3.8
gemfile: gemfiles/spree_master.gemfile
- rvm: 2.4.4
gemfile: gemfiles/spree_master.gemfile
- rvm: 2.5.1
gemfile: gemfiles/spree_3_3.gemfile
- rvm: 2.5.1
gemfile: gemfiles/spree_3_5.gemfile
before_install:
- mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"
- wget -N https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT