forked from brendon/acts_as_list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (55 loc) · 1.59 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
53
54
55
language: ruby
cache: bundler
sudo: false
before_script:
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '< 2'
- mysql -e 'create database acts_as_list;'
- psql -c 'create database acts_as_list;' -U postgres
rvm:
- 2.4
- 2.5
- 2.6
- 2.7
- 3.0
services:
- mysql
- postgresql
env:
- DB=sqlite
- DB=mysql
- DB=postgresql
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: 2.4
gemfile: gemfiles/rails_6_0.gemfile
- rvm: 2.4
gemfile: gemfiles/rails_6_1.gemfile
# Ruby 2.7 uses a `bigdecimal` version that doesn't support BigDecimal.new
# that Rails 4.2 uses. See also:
# https://github.com/ruby/bigdecimal#which-version-should-you-select
- rvm: 2.7
gemfile: gemfiles/rails_4_2.gemfile
# Ruby 2.7 warning `sqlite3-1.3.13/lib/sqlite3/statement.rb:108: warning: rb_tainted_str_new is deprecated`
# and job wil exceed the maximum log length
# see also: https://github.com/sparklemotion/sqlite3-ruby/issues/276
- rvm: 2.7
gemfile: gemfiles/rails_5_0.gemfile
env: DB=sqlite
# Rails <6 does not support Ruby 3, see:
# https://github.com/rails/rails/issues/40938#issuecomment-751898275
- rvm: 3.0
gemfile: gemfiles/rails_4_2.gemfile
- rvm: 3.0
gemfile: gemfiles/rails_5_0.gemfile
- rvm: 3.0
gemfile: gemfiles/rails_5_1.gemfile
- rvm: 3.0
gemfile: gemfiles/rails_5_2.gemfile