Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitLab CI: Update to use latest Ruby #3312

Merged
merged 1 commit into from
Apr 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 41 additions & 19 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.install-template:
before_script:
- gem update --system=2.7.8
- gem update --system
- ruby -v

.test-template:
Expand All @@ -13,34 +13,44 @@ stages:
- build
- tests

2-4-5:
image: "ruby:2.4.5"
2-5-8:
image: "ruby:2.5.8"
stage: build
extends: .install-template
script:
- bundle install --jobs=3 --retry=3
cache:
key: "$CI_COMMIT_REF_SLUG 2-4-5"
key: "$CI_COMMIT_REF_SLUG 2-5-8"
paths:

2-5-5:
image: "ruby:2.5.5"
2-6-6:
image: "ruby:2.6.6"
stage: build
extends: .install-template
script:
- bundle install --jobs=3 --retry=3
cache:
key: "$CI_COMMIT_REF_SLUG 2-5-5"
key: "$CI_COMMIT_REF_SLUG 2-6-6"
paths:

2-6-3:
image: "ruby:2.6.3"
2-7-2:
image: "ruby:2.7.2"
stage: build
extends: .install-template
script:
- bundle install --jobs=3 --retry=3
cache:
key: "$CI_COMMIT_REF_SLUG 2-6-3"
key: "$CI_COMMIT_REF_SLUG 2-7-2"
paths:

3-0-0:
image: "ruby:3.0.0"
stage: build
extends: .install-template
script:
- bundle install --jobs=3 --retry=3
cache:
key: "$CI_COMMIT_REF_SLUG 3-0-0"
paths:

rubyhead:
Expand All @@ -54,39 +64,51 @@ rubyhead:
paths:
- ./*

2-4-5-test:
image: "ruby:2.4.5"
2-5-8-test:
image: "ruby:2.5.8"
stage: tests
allow_failure: true
extends: .test-template
script:
- bundle exec rake test
cache:
key: "$CI_COMMIT_REF_SLUG 2-5-8"
paths:
- ./*

2-6-6-test:
image: "ruby:2.6.6"
stage: tests
allow_failure: true
extends: .test-template
script:
- bundle exec rake test
cache:
key: "$CI_COMMIT_REF_SLUG 2-4-5"
key: "$CI_COMMIT_REF_SLUG 2-6-6"
paths:
- ./*

2-5-5-test:
image: "ruby:2.5.5"
2-7-2-test:
image: "ruby:2.7.2"
stage: tests
allow_failure: true
extends: .test-template
script:
- bundle exec rake test
cache:
key: "$CI_COMMIT_REF_SLUG 2-5-5"
key: "$CI_COMMIT_REF_SLUG 2-7-2"
paths:
- ./*

2-6-3-test:
image: "ruby:2.6.3"
3-0-0-test:
image: "ruby:3.0.0"
stage: tests
allow_failure: true
extends: .test-template
script:
- bundle exec rake test
cache:
key: "$CI_COMMIT_REF_SLUG 2-6-3"
key: "$CI_COMMIT_REF_SLUG 3-0-0"
paths:
- ./*

Expand Down