forked from ledermann/unread
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 895 Bytes
/
.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
language: ruby
rvm:
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.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.3
gemfile: gemfiles/rails_4_0.gemfile
- rvm: 2.4.3
gemfile: gemfiles/rails_4_1.gemfile
- rvm: 2.5.0
gemfile: gemfiles/rails_4_0.gemfile
- rvm: 2.5.0
gemfile: gemfiles/rails_4_1.gemfile
before_install: gem update bundler
sudo: false
env:
- DB=sqlite
- DB=mysql
- DB=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"