-
Notifications
You must be signed in to change notification settings - Fork 241
/
.travis.yml
55 lines (45 loc) · 1.15 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
os: linux
dist: bionic
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
services:
- mysql
- postgresql
language: ruby
rvm:
- 2.7
- 3.0
env:
- DB=mysql
- DB=postgres
gemfile:
- gemfiles/spree_3_7.gemfile
- gemfiles/spree_4_0.gemfile
- gemfiles/spree_4_1.gemfile
- gemfiles/spree_4_2.gemfile
- gemfiles/spree_master.gemfile
jobs:
exclude:
- rvm: 3.0
gemfile: gemfiles/spree_3_7.gemfile
- rvm: 3.0
gemfile: gemfiles/spree_4_0.gemfile
- rvm: 3.0
gemfile: gemfiles/spree_4_1.gemfile
allow_failures:
- gemfile: gemfiles/spree_master.gemfile
before_install:
- mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"
before_script:
- CHROME_MAIN_VERSION=`google-chrome-stable --version | sed -E 's/(^Google Chrome |\.[0-9]+ )//g'`
- CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"`
- curl "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
- unzip chromedriver_linux64.zip -d ~/bin
- nvm install 14
script:
- bundle exec rake test_app
- bundle exec rake spec