Skip to content

Commit

Permalink
Drop ActiveRecord4 from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
coorasse committed Mar 22, 2022
1 parent 6c7b6d8 commit db2b25a
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 67 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
ruby: ['2.6', '2.7', '3.0', 'jruby', 'truffleruby']
gemfile: ['gemfiles/activerecord_4.2.0.gemfile', 'gemfiles/activerecord_5.0.2.gemfile', 'gemfiles/activerecord_5.1.0.gemfile', 'gemfiles/activerecord_5.2.2.gemfile', 'gemfiles/activerecord_6.0.0.gemfile', 'gemfiles/activerecord_6.1.0.gemfile', 'gemfiles/activerecord_main.gemfile']
gemfile: ['gemfiles/activerecord_5.0.2.gemfile', 'gemfiles/activerecord_5.1.0.gemfile', 'gemfiles/activerecord_5.2.2.gemfile', 'gemfiles/activerecord_6.0.0.gemfile', 'gemfiles/activerecord_6.1.0.gemfile', 'gemfiles/activerecord_main.gemfile']
include:
- gemfile: 'gemfiles/activerecord_7.0.0.gemfile'
ruby: '3.1'
Expand All @@ -34,12 +34,6 @@ jobs:
ruby: '3.0' # rails 5.0 can't run on ruby 3.0
- gemfile: 'gemfiles/activerecord_5.0.2.gemfile'
ruby: '3.0' # rails 5.0 can't run on ruby 3.0
- gemfile: 'gemfiles/activerecord_4.2.0.gemfile'
ruby: '3.0' # rails 4.2 can't run on ruby 3.0
- gemfile: 'gemfiles/activerecord_4.2.0.gemfile'
ruby: '2.7' # rails 4.2 can't run on ruby 2.7 due to BigDecimal API change
- gemfile: 'gemfiles/activerecord_4.2.0.gemfile'
ruby: 'truffleruby' # TruffleRuby 21.0 targets Ruby 2.7, same as above
- gemfile: 'gemfiles/activerecord_5.0.2.gemfile'
ruby: 'truffleruby' # TruffleRuby 21.0 targets Ruby 2.7, same as above
- gemfile: 'gemfiles/activerecord_5.1.0.gemfile'
Expand Down
55 changes: 27 additions & 28 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
appraise 'activerecord_4.2.0' do
gem 'activerecord', '~> 4.2.0', require: 'active_record'
gem 'activesupport', '~> 4.2.0', require: 'active_support/all'
gem 'actionpack', '~> 4.2.0', require: 'action_pack'
gem 'nokogiri', '~> 1.6.8', require: 'nokogiri' # TODO: fix for ruby 2.0.0

gemfile.platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter', '~> 1.3.24'
gem 'jdbc-sqlite3'
gem 'jdbc-postgres'
end

gemfile.platforms :ruby, :mswin, :mingw do
gem 'sqlite3', '~> 1.3.0'
gem 'pg', '~> 0.21'
end
end

appraise 'activerecord_5.0.2' do
gem 'activerecord', '~> 5.0.2', require: 'active_record'
gem 'activesupport', '~> 5.0.2', require: 'active_support/all'
Expand All @@ -28,8 +10,8 @@ appraise 'activerecord_5.0.2' do
end

gemfile.platforms :ruby, :mswin, :mingw do
gem 'sqlite3', '~> 1.3.0'
gem 'pg', '~> 0.21'
gem 'pg', '~> 1.3.4'
gem 'sqlite3', '~> 1.4.2'
end
end

Expand All @@ -45,8 +27,8 @@ appraise 'activerecord_5.1.0' do
end

gemfile.platforms :ruby, :mswin, :mingw do
gem 'sqlite3', '~> 1.3.0'
gem 'pg', '~> 0.21'
gem 'pg', '~> 1.3.4'
gem 'sqlite3', '~> 1.4.2'
end
end

Expand All @@ -62,8 +44,8 @@ appraise 'activerecord_5.2.2' do
end

gemfile.platforms :ruby, :mswin, :mingw do
gem 'sqlite3', '~> 1.3.0'
gem 'pg', '~> 0.21'
gem 'pg', '~> 1.3.4'
gem 'sqlite3', '~> 1.4.2'
end
end

Expand All @@ -79,8 +61,8 @@ appraise 'activerecord_6.0.0' do
end

platforms :ruby, :mswin, :mingw do
gem 'pg', '~> 1.1.4'
gem 'sqlite3', '~> 1.4.0'
gem 'pg', '~> 1.3.4'
gem 'sqlite3', '~> 1.4.2'
end
end

Expand All @@ -96,7 +78,24 @@ appraise 'activerecord_6.1.0' do
end

platforms :ruby, :mswin, :mingw do
gem 'pg', '~> 1.2.3'
gem 'pg', '~> 1.3.4'
gem 'sqlite3', '~> 1.4.2'
end
end

appraise 'activerecord_7.0.0' do
gem 'actionpack', '~> 7.0.0', require: 'action_pack'
gem 'activerecord', '~> 7.0.0', require: 'active_record'
gem 'activesupport', '~> 7.0.0', require: 'active_support/all'

platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter'
gem 'jdbc-sqlite3'
gem 'jdbc-postgres'
end

platforms :ruby, :mswin, :mingw do
gem 'pg', '~> 1.3.4'
gem 'sqlite3', '~> 1.4.2'
end
end
Expand All @@ -115,7 +114,7 @@ appraise 'activerecord_main' do
end

platforms :ruby, :mswin, :mingw do
gem 'pg', '~> 1.2.3'
gem 'pg', '~> 1.3.4'
gem 'sqlite3', '~> 1.4.2'
end
end
21 changes: 0 additions & 21 deletions gemfiles/activerecord_4.2.0.gemfile

This file was deleted.

4 changes: 2 additions & 2 deletions gemfiles/activerecord_5.0.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ platforms :jruby do
end

platforms :ruby, :mswin, :mingw do
gem "sqlite3", "~> 1.3.0"
gem "pg", "~> 0.21"
gem "pg", "~> 1.3.4"
gem "sqlite3", "~> 1.4.2"
end

gemspec path: "../"
4 changes: 2 additions & 2 deletions gemfiles/activerecord_5.1.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ platforms :jruby do
end

platforms :ruby, :mswin, :mingw do
gem "sqlite3", "~> 1.3.0"
gem "pg", "~> 0.21"
gem "pg", "~> 1.3.4"
gem "sqlite3", "~> 1.4.2"
end

gemspec path: "../"
4 changes: 2 additions & 2 deletions gemfiles/activerecord_5.2.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ platforms :jruby do
end

platforms :ruby, :mswin, :mingw do
gem "sqlite3", "~> 1.3.0"
gem "pg", "~> 0.21"
gem "pg", "~> 1.3.4"
gem "sqlite3", "~> 1.4.2"
end

gemspec path: "../"
4 changes: 2 additions & 2 deletions gemfiles/activerecord_6.0.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ platforms :jruby do
end

platforms :ruby, :mswin, :mingw do
gem "pg", "~> 1.1.4"
gem "sqlite3", "~> 1.4.0"
gem "pg", "~> 1.3.4"
gem "sqlite3", "~> 1.4.2"
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/activerecord_6.1.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ platforms :jruby do
end

platforms :ruby, :mswin, :mingw do
gem "pg", "~> 1.2.3"
gem "pg", "~> 1.3.4"
gem "sqlite3", "~> 1.4.2"
end

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_7.0.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ platforms :jruby do
end

platforms :ruby, :mswin, :mingw do
gem "pg", "~> 1.2.3"
gem "pg", "~> 1.3.4"
gem "sqlite3", "~> 1.4.2"
end

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_main.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ platforms :jruby do
end

platforms :ruby, :mswin, :mingw do
gem "pg", "~> 1.2.3"
gem "pg", "~> 1.3.4"
gem "sqlite3", "~> 1.4.2"
end

Expand Down

0 comments on commit db2b25a

Please sign in to comment.