-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
92 lines (80 loc) · 2.51 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
language: ruby
os: linux
dist: bionic
sudo: false
before_install:
- bundle config set --local path ../../vendor/bundle without debug
before_script:
- 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
script:
- bundle exec rspec --format d
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
matrix:
include:
- name: Rubocop
gemfile: spec/gemfiles/rubocop.gemfile
rvm: 2.7
script: bundle exec rubocop
- gemfile: spec/gemfiles/rails_5_2.gemfile
rvm: 2.6
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_5_2.gemfile
rvm: 2.6
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_5_2.gemfile
rvm: 2.6
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_6_0.gemfile
rvm: 2.7
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_6_0.gemfile
rvm: 2.7
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_6_0.gemfile
rvm: 2.7
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 3.0
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 3.0
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 3.0
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_7_0.gemfile
rvm: 3.0
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_7_0.gemfile
rvm: 3.0
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_7_0.gemfile
rvm: 3.0
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_main.gemfile
rvm: 3.0
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_main.gemfile
rvm: 3.0
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_main.gemfile
rvm: 3.0
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
cache: bundler
bundler_args: --path ../../vendor/bundle --without debug
env:
global:
- COVERAGE=1 TRAVIS=1