forked from cerebris/jsonapi-resources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (31 loc) · 1.01 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
language: ruby
sudo: false
services:
- postgresql
env:
- RAILS_VERSION=6.0.0 DATABASE_URL=postgres://postgres@localhost/jr_test
- RAILS_VERSION=6.0.0
- RAILS_VERSION=5.2.3 DATABASE_URL=postgres://postgres@localhost/jr_test
- RAILS_VERSION=5.2.3
- RAILS_VERSION=5.1.7
- RAILS_VERSION=5.0.7.2
- RAILS_VERSION=4.2.11
rvm:
- 2.4.9
- 2.5.7
- 2.6.5
matrix:
exclude:
- rvm: 2.6.5
env: "RAILS_VERSION=4.2.11"
- rvm: 2.4.9
env: "RAILS_VERSION=6.0.0"
- rvm: 2.4.9
env: "RAILS_VERSION=6.0.0 DATABASE_URL=postgres://postgres@localhost/jr_test"
- rvm: 2.4.9
env: "RAILS_VERSION=5.2.3 DATABASE_URL=postgres://postgres@localhost/jr_test"
before_install:
- gem install bundler --version 1.17.3
before_script:
- sh -c "if [ '$DATABASE_URL' = 'postgres://postgres@localhost/jr_test' ]; then psql -c 'DROP DATABASE IF EXISTS jr_test;' -U postgres; fi"
- sh -c "if [ '$DATABASE_URL' = 'postgres://postgres@localhost/jr_test' ]; then psql -c 'CREATE DATABASE jr_test;' -U postgres; fi"