forked from ledermann/unread
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 977 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
34
35
36
37
38
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.8
- 2.2.4
- 2.3.0
gemfile:
- gemfiles/rails_5_0.gemfile
- gemfiles/rails_4_2.gemfile
- gemfiles/rails_4_1.gemfile
- gemfiles/rails_4_0.gemfile
- gemfiles/rails_3_2.gemfile
- gemfiles/rails_3_1.gemfile
- gemfiles/rails_3_0.gemfile
matrix:
exclude:
- rvm: 1.9.3
gemfile: gemfiles/rails_5_0.gemfile
- rvm: 2.0.0
gemfile: gemfiles/rails_5_0.gemfile
- rvm: 2.1.8
gemfile: gemfiles/rails_5_0.gemfile
- rvm: 2.3.0
gemfile: gemfiles/rails_3_0.gemfile
- rvm: 2.3.0
gemfile: gemfiles/rails_3_1.gemfile
- rvm: 2.3.0
gemfile: gemfiles/rails_3_2.gemfile
before_install: gem update bundler
sudo: false
env:
- DB=sqlite
- DB=mysql
- DB=postgres
before_script:
- 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"