@@ -10,20 +10,43 @@ workflow:
10
10
# For tags, create a pipeline.
11
11
- if : ' $CI_COMMIT_TAG'
12
12
13
- .test_template : &test_definition
13
+ .test_template-current : &test_definition-current
14
14
image : ruby:${RUBY_VERSION}
15
15
stage : test
16
16
script :
17
- - gem update --system
17
+ - gem update --system > /dev/null 2>&1
18
18
- bundle config --local path vendor
19
- - bundle install --jobs 4 --retry 3
19
+ - bundle install --quiet -- jobs 4 --retry 3
20
20
- bundle exec rake test
21
21
cache :
22
22
key : ${CI_JOB_IMAGE}
23
23
paths :
24
24
- 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
27
50
parallel :
28
51
matrix :
29
- - RUBY_VERSION : ["2.7", "3.0", "3.1", "3.2" ]
52
+ - RUBY_VERSION : ["2.7"]
0 commit comments