forked from ledermann/unread
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 1.13 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
language: ruby
rvm:
- 2.4.9
- 2.5.7
- 2.6.5
gemfile:
- gemfiles/rails_6_0.gemfile
- gemfiles/rails_5_2.gemfile
- gemfiles/rails_5_1.gemfile
- gemfiles/rails_5_0.gemfile
- gemfiles/rails_4_2.gemfile
- gemfiles/rails_4_1.gemfile
- gemfiles/rails_4_0.gemfile
matrix:
exclude:
- rvm: 2.4.9
gemfile: gemfiles/rails_4_0.gemfile
- rvm: 2.4.9
gemfile: gemfiles/rails_4_1.gemfile
- rvm: 2.4.9
gemfile: gemfiles/rails_6_0.gemfile
- rvm: 2.5.7
gemfile: gemfiles/rails_4_0.gemfile
- rvm: 2.5.7
gemfile: gemfiles/rails_4_1.gemfile
- rvm: 2.6.5
gemfile: gemfiles/rails_4_0.gemfile
- rvm: 2.6.5
gemfile: gemfiles/rails_4_1.gemfile
before_install: gem update bundler
sudo: false
env:
- DB=sqlite
- DB=mysql
- DB=postgres
services:
- mysql
- postgres
before_script:
- gem update --system # https://github.com/travis-ci/travis-ci/issues/8978
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS unread_test;'; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database unread_test;' -U postgres; fi"
addons:
postgresql: "9.4"