forked from magnusvk/counter_culture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (43 loc) · 1.11 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
language: ruby
cache:
directories:
- ~/.rvm/gems
services:
- postgresql
- mysql
addons:
postgresql: "9.6"
rvm:
- "2.5.9"
- "2.6.7"
- "2.7.3"
- "3.0.1"
gemfile:
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
- gemfiles/rails_5.2.gemfile
- gemfiles/rails_6.0.gemfile
- gemfiles/rails_6.1.gemfile
matrix:
exclude:
- rvm: "3.0.1"
gemfile: gemfiles/rails_4.2.gemfile
- rvm: "3.0.1"
gemfile: gemfiles/rails_5.0.gemfile
- rvm: "3.0.1"
gemfile: gemfiles/rails_5.1.gemfile
- rvm: "3.0.1"
gemfile: gemfiles/rails_5.2.gemfile
env:
- DB=postgresql
- DB=sqlite3
- DB=mysql2
before_install:
- if [ "$BUNDLE_GEMFILE" = "$PWD/gemfiles/rails_4.2.gemfile" ]; then gem install bundler -v '1.17.3'; else gem install bundler -v '> 2'; fi
install:
- if [ "$BUNDLE_GEMFILE" = "$PWD/gemfiles/rails_4.2.gemfile" ]; then bundle _1.17.3_ update; else bundle update; fi
before_script:
- psql -c 'create database counter_culture_test;' -U postgres
- mysql -e 'CREATE DATABASE counter_culture_test;'
script: TRAVIS=true bundle exec rake spec