-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
52 lines (43 loc) · 1.2 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
45
46
47
48
49
50
51
52
language: ruby
rvm:
- 2.0
- 2.1
- 2.2
- rbx-3
gemfile:
- gemfiles/activerecord_4_2.gemfile
- gemfiles/activerecord_5_0.gemfile
- gemfiles/activerecord_5_1.gemfile
- gemfiles/activerecord_edge.gemfile
env:
- DB=postgresql
- DB=mysql
- DB=sqlite3
sudo: false
before_install:
- rvm get master
before_script:
- sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'DROP DATABASE IF EXISTS sexy_scopes_spec;' -U postgres; fi"
- sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'CREATE DATABASE sexy_scopes_spec;' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS sexy_scopes_spec;'; fi"
script: bundle exec rake
matrix:
allow_failures:
- gemfile: gemfiles/activerecord_edge.gemfile
exclude:
# ActiveRecord 5 requires Ruby 2.2.0
- rvm: 2.0
gemfile: gemfiles/activerecord_5_0.gemfile
- rvm: 2.0
gemfile: gemfiles/activerecord_5_1.gemfile
- rvm: 2.0
gemfile: gemfiles/activerecord_edge.gemfile
- rvm: 2.1
gemfile: gemfiles/activerecord_5_0.gemfile
- rvm: 2.1
gemfile: gemfiles/activerecord_5_1.gemfile
- rvm: 2.1
gemfile: gemfiles/activerecord_edge.gemfile
branches:
only:
- master