Skip to content

Commit

Permalink
Merge pull request #3341 from codealchemy/fix-ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
mshibuya authored Feb 20, 2021
2 parents f0c46f1 + 4ee793f commit b514455
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ end
group :test do
gem 'cancancan', '~> 3.0'
gem 'carrierwave', ['>= 2.0.0.rc', '< 3']
gem 'database_cleaner', ['>= 1.2', '!= 1.4.0', '!= 1.5.0']
gem 'database_cleaner', ['>= 1.2', '!= 1.4.0', '!= 1.5.0', '< 2.0']
gem 'dragonfly', '~> 1.0'
gem 'factory_bot', '>= 4.2'
gem 'generator_spec', '>= 0.8'
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_5.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ end
group :test do
gem "cancancan", "~> 2.0"
gem "carrierwave", [">= 2.0.0.rc", "< 3"]
gem "database_cleaner", [">= 1.2", "!= 1.4.0", "!= 1.5.0"]
gem "database_cleaner", [">= 1.2", "!= 1.4.0", "!= 1.5.0", "< 2.0"]
gem "dragonfly", "~> 1.0"
gem "factory_bot", ">= 4.2"
gem "generator_spec", ">= 0.8"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_5.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end
group :test do
gem "cancancan", "~> 2.0"
gem "carrierwave", [">= 2.0.0.rc", "< 3"]
gem "database_cleaner", [">= 1.2", "!= 1.4.0", "!= 1.5.0"]
gem "database_cleaner", [">= 1.2", "!= 1.4.0", "!= 1.5.0", "< 2.0"]
gem "dragonfly", "~> 1.0"
gem "factory_bot", ">= 4.2"
gem "generator_spec", ">= 0.8"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_5.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end
group :test do
gem "cancancan", "~> 2.0"
gem "carrierwave", [">= 2.0.0.rc", "< 3"]
gem "database_cleaner", [">= 1.2", "!= 1.4.0", "!= 1.5.0"]
gem "database_cleaner", [">= 1.2", "!= 1.4.0", "!= 1.5.0", "< 2.0"]
gem "dragonfly", "~> 1.0"
gem "factory_bot", ">= 4.2"
gem "generator_spec", ">= 0.8"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end
group :test do
gem "cancancan", "~> 3.0"
gem "carrierwave", [">= 2.0.0.rc", "< 3"]
gem "database_cleaner", [">= 1.2", "!= 1.4.0", "!= 1.5.0"]
gem "database_cleaner", [">= 1.2", "!= 1.4.0", "!= 1.5.0", "< 2.0"]
gem "dragonfly", "~> 1.0"
gem "factory_bot", ">= 4.2"
gem "generator_spec", ">= 0.8"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ end
group :test do
gem "cancancan", "~> 3.0", github: "ghiculescu/cancancan", branch: "avoid-resolve_column_aliases-2"
gem "carrierwave", [">= 2.0.0.rc", "< 3"]
gem "database_cleaner", [">= 1.2", "!= 1.4.0", "!= 1.5.0"]
gem "database_cleaner", [">= 1.2", "!= 1.4.0", "!= 1.5.0", "< 2.0"]
gem "dragonfly", "~> 1.0"
gem "factory_bot", ">= 4.2"
gem "generator_spec", ">= 0.8"
Expand Down
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
CI_TARGET_ORMS = [:active_record, :mongoid].freeze
PK_COLUMN = {active_record: :id, mongoid: :_id}[CI_ORM]

if RUBY_ENGINE == 'jruby'
# Workaround for JRuby CI failure https://github.com/jruby/jruby/issues/6547#issuecomment-774104996
require 'i18n/backend'
require 'i18n/backend/simple'
end

require 'simplecov'
require 'simplecov-lcov'

Expand Down

0 comments on commit b514455

Please sign in to comment.