-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
83 lines (82 loc) · 2.52 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
language: ruby
dist: xenial
sudo: false
cache: bundler
bundler_args: --path ../../vendor/bundle --without debug
matrix:
include:
- name: Rubocop
gemfile: spec/gemfiles/rubocop.gemfile
rvm: 2.5.3
script: bundle exec rubocop
before_script:
after_script:
- gemfile: spec/gemfiles/rails_5_0.gemfile
rvm: 2.3.8
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_5_0.gemfile
rvm: 2.3.8
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_5_0.gemfile
rvm: 2.3.8
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_5_1.gemfile
rvm: 2.3.8
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_5_1.gemfile
rvm: 2.3.8
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_5_1.gemfile
rvm: 2.3.8
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_5_2.gemfile
rvm: 2.3.8
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_5_2.gemfile
rvm: 2.3.8
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_5_2.gemfile
rvm: 2.3.8
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_6_0.gemfile
rvm: 2.5.3
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_6_0.gemfile
rvm: 2.5.3
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_6_0.gemfile
rvm: 2.5.3
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 2.5.3
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 2.5.3
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 2.5.3
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
env:
global:
- TRAVIS=1
- COVERAGE=1
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 --force-color --format d
after_script:
- >
if [ ! -z "$COVERAGE" ]; then
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
fi