forked from Quintus/ruby-xz
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
73 lines (63 loc) · 1.28 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
73 lines (63 loc) · 1.28 KB
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
73
image: ruby:3.1-alpine
variables:
BUNDLE_PATH: vendor/bundle
BUNDLE_DEPLOYMENT: "true"
before_script:
- ruby --version
- test -d vendor/apk || (mkdir -p vendor && cp -r /var/cache/apk vendor/)
- rm -rf /var/cache/apk
- ln -s "$PWD"/vendor/apk /var/cache/
- apk add git xz
- gem install bundler -v 2.3.7
- bundle install || (apk add gcc g++ make && bundle install)
cache:
key: global-dependency-cache
paths:
- vendor/
stages:
- test
test ruby-3.1:
image: ruby:3.1-alpine
stage: test
script:
- bundle exec rake
test ruby-3.0:
image: ruby:3.0-alpine
stage: test
script:
- bundle exec rake
test ruby-2.7:
image: ruby:2.7-alpine
stage: test
script:
- bundle exec rake
test ruby-2.6:
image: ruby:2.6-alpine
stage: test
script:
- bundle exec rake
test ruby-2.5:
image: ruby:2.5-alpine
stage: test
script:
- gem update --system 3.2.3
- bundle exec rake
test ruby-2.4:
image: ruby:2.4-alpine
stage: test
script:
- gem update --system 3.2.3
- bundle exec rake
test ruby-2.3:
image: ruby:2.3-alpine
stage: test
script:
- gem update --system 3.2.3
- bundle exec rake
check for bundle updates:
stage: test
variables:
BUNDLE_DEPLOYMENT: "false"
script:
- bundle outdated
allow_failure: true