Skip to content

Commit 4c44370

Browse files
committed
[CI] Don't test Rails 4.0 in model if Ruby > 2.7
1 parent 239af1c commit 4c44370

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

elasticsearch-model/Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ desc 'Run unit tests'
2121
task default: 'test:all'
2222
task test: 'test:all'
2323

24-
GEMFILES = ['4.0.gemfile', '5.0.gemfile', '6.0.gemfile']
24+
gemfiles = ['5.0.gemfile', '6.0.gemfile']
25+
gemfiles << '4.0.gemfile' if RUBY_VERSION < '2.7'
26+
GEMFILES = gemfiles.freeze
2527

2628
namespace :bundle do
2729
desc 'Install dependencies for all the Gemfiles in /gemfiles. Optionally define env variable RAILS_VERSIONS. E.g. RAILS_VERSIONS=3.0,5.0'

0 commit comments

Comments
 (0)