-
Notifications
You must be signed in to change notification settings - Fork 149
/
config.yml
62 lines (58 loc) · 1.97 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
version: 2.1
jobs:
test:
parameters:
ruby_image:
type: string
docker:
- image: << parameters.ruby_image >>
steps:
- checkout
# We need to limit the version of Rubygems that we update to for some of the older
# JRuby versions. Specifically:
#
# - JRuby 9.2.x targets Ruby 2.5, and Rubygems 3.3.26 was the last version to
# support that
# - JRuby 9.3.x targets Ruby 2.6, and version 3.4.22 was the last version to
# support that
#
# For now, we'll pin to the last supported version. We can drop this check once we
# drop all those versions of JRuby.
- run: |
running_very_old_ruby=$(ruby -e 'puts Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6.0")')
running_moderately_old_ruby=$(ruby -e 'puts Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.0.0")')
if [[ "${running_very_old_ruby}" == "true" ]]; then
gem update --system 3.3.26
elif [[ "${running_moderately_old_ruby}" == "true" ]]; then
gem update --system 3.4.22
else
gem update --system
fi
- run: bundle install
- run: bundle exec rake
workflows:
version: 2
client_ruby:
jobs:
- test:
matrix:
parameters:
ruby_image:
- cimg/ruby:2.6
- cimg/ruby:2.7
- cimg/ruby:3.0
- cimg/ruby:3.1
- cimg/ruby:3.2
- cimg/ruby:3.3
# We've switched to JRuby's own Docker image as CircleCI decided to
# stop supporting it when they deprecated their legacy images. For
# some reason, the official JRuby image for 9.1 fails with an
# inscrutable error message that isn't worth debugging.
#
# We'll drop this version on our next major release anyway, as it's
# out of security support.
- circleci/jruby:9.1
- jruby:9.2
- jruby:9.3
- jruby:9.4