-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.gitlab-ci.yml
72 lines (61 loc) · 1.06 KB
/
.gitlab-ci.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
63
64
65
66
67
68
69
70
71
72
stages:
- test
.test:
stage: test
image: ruby:${RUBY_VERSION}-bullseye
variables:
GIT_DEPTH: "1"
GIT_SUBMODULE_STRATEGY: recursive
# httpclient does not work with frozen string literal
# RUBYOPT: --enable-frozen-string-literal
before_script:
- bundle install --retry=3
- unset CI # Coverage doesn't work well with frozen literal
script:
- ruby -vr bundler/setup -S rake test
.json:
variables:
json_lib: json
.yajl:
variables:
json_lib: yajl
ruby:3.0 json:
extends:
- .test
- .json
variables:
RUBY_VERSION: '3.0'
ruby:3.0 yajl:
extends:
- .test
- .yajl
variables:
RUBY_VERSION: '3.0'
ruby:3.1 json:
extends:
- .test
- .json
variables:
RUBY_VERSION: '3.1'
ruby:3.1 yajl:
extends:
- .test
- .yajl
variables:
RUBY_VERSION: '3.1'
ruby:3.2 json:
extends:
- .test
- .json
variables:
RUBY_VERSION: '3.2'
ruby:3.2 yajl:
extends:
- .test
- .yajl
variables:
RUBY_VERSION: '3.2'
jruby:latest:
extends:
- .test
image: jruby:latest