-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
60 lines (50 loc) · 1.17 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: false
dist: trusty
language: ruby
cache: bundler
rvm:
- 2.2.10
- 2.3.7
- 2.4.4
- 2.5.1
- ruby-head
gemfile:
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
- gemfiles/rails_5.2.gemfile
env:
- DATABASE=sqlite
- DATABASE=mysql
- DATABASE=postgres
matrix:
exclude:
# DATABASE=sqlite doesn't work until rails 5.1
- gemfile: gemfiles/rails_4.2.gemfile
env: DATABASE=sqlite
- gemfile: gemfiles/rails_5.0.gemfile
env: DATABASE=sqlite
allow_failures:
# foreign keys not working right with mysql/pg and rails 4.2
- gemfile: gemfiles/rails_4.2.gemfile
env: DATABASE=mysql
- gemfile: gemfiles/rails_4.2.gemfile
env: DATABASE=postgres
addons:
code_climate:
repo_token: 30c89fe1988d654211e1d65cdb44f1dca0f89cea1bfe456ceb1ce67e6daf17b8
# regular test configuration
after_success:
- bundle exec codeclimate-test-reporter
before_script:
- psql -c 'CREATE DATABASE db_subsetter;' -U postgres
- mysql -e 'CREATE DATABASE db_subsetter;'
services:
- mysql
- postgresql
script:
- bundle exec rake test
- bundle exec rake rubocop
branches:
except:
- windows