@@ -10,20 +10,43 @@ workflow:
1010 # For tags, create a pipeline.
1111 - if : ' $CI_COMMIT_TAG'
1212
13- .test_template : &test_definition
13+ .test_template-current : &test_definition-current
1414 image : ruby:${RUBY_VERSION}
1515 stage : test
1616 script :
17- - gem update --system
17+ - gem update --system > /dev/null 2>&1
1818 - bundle config --local path vendor
19- - bundle install --jobs 4 --retry 3
19+ - bundle install --quiet -- jobs 4 --retry 3
2020 - bundle exec rake test
2121 cache :
2222 key : ${CI_JOB_IMAGE}
2323 paths :
2424 - vendor/ruby
25- ruby :
26- << : *test_definition
25+
26+ .test_template-legacy : &test_definition-legacy
27+ image : ruby:${RUBY_VERSION}
28+ stage : test
29+ script :
30+ # Because we support EOL Ruby still...
31+ - gem install rubygems-update -v 3.4.22 > /dev/null 2>&1
32+ # Actually updates both RubyGems and Bundler!
33+ - update_rubygems > /dev/null 2>&1
34+ - bundle config --local path vendor
35+ - bundle install --quiet --jobs 4 --retry 3
36+ - bundle exec rake test
37+ cache :
38+ key : ${CI_JOB_IMAGE}
39+ paths :
40+ - vendor/ruby
41+
42+ ruby-current :
43+ << : *test_definition-current
44+ parallel :
45+ matrix :
46+ - RUBY_VERSION : ["3.0", "3.1", "3.2"]
47+
48+ ruby-legacy :
49+ << : *test_definition-legacy
2750 parallel :
2851 matrix :
29- - RUBY_VERSION : ["2.7", "3.0", "3.1", "3.2" ]
52+ - RUBY_VERSION : ["2.7"]
0 commit comments