forked from collectiveidea/audited
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (58 loc) · 1.27 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
language: ruby
cache: bundler
rvm:
- 2.3.7
- 2.4.4
- 2.5.1
- 2.6.3
- ruby-head
env:
- DB=SQLITE
- DB=POSTGRES
- DB=MYSQL
addons:
postgresql: "9.4"
services:
- mysql
before_install:
# https://github.com/travis-ci/travis-ci/issues/8978
- "travis_retry gem update --system"
# Rails 4.2 has a bundler 1.x requirement
- if [ $BUNDLE_GEMFILE = $PWD/gemfiles/rails42.gemfile ]; then
rvm @global do gem uninstall bundler -a -x;
travis_retry gem install -v '< 2.0.0' bundler;
else
travis_retry gem install bundler;
fi
gemfile:
- gemfiles/rails42.gemfile
- gemfiles/rails50.gemfile
- gemfiles/rails51.gemfile
- gemfiles/rails52.gemfile
- gemfiles/rails60.gemfile
matrix:
include:
- rvm: 2.6.3
script: bundle exec rubocop --parallel
env: DB=rubocop # make travis build display nicer
exclude:
- rvm: 2.3.7
gemfile: gemfiles/rails60.gemfile
- rvm: 2.4.4
gemfile: gemfiles/rails60.gemfile
- rvm: 2.6.3
gemfile: gemfiles/rails42.gemfile
- rvm: ruby-head
gemfile: gemfiles/rails42.gemfile
allow_failures:
- rvm: ruby-head
fast_finish: true
branches:
only:
- master
- /.*-stable$/
notifications:
webhooks:
urls:
- http://buildlight.collectiveidea.com/
on_start: always