summaryrefslogtreecommitdiffstats
path: root/CLI/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'CLI/ruby')
-rw-r--r--CLI/ruby/.gitlab-ci.yml30
1 files changed, 21 insertions, 9 deletions
diff --git a/CLI/ruby/.gitlab-ci.yml b/CLI/ruby/.gitlab-ci.yml
index a639158..d573ce5 100644
--- a/CLI/ruby/.gitlab-ci.yml
+++ b/CLI/ruby/.gitlab-ci.yml
@@ -1,5 +1,4 @@
image: ruby:2.7
-
stages:
- build
- test
@@ -19,17 +18,31 @@ cache: &cache
before_script:
- cd CLI/ruby
+ - gem update --system
+ - bundle update --bundler
- bundle install -j $(nproc)
-build:
- stage: build
+test:2.7:
+ image: ruby:2.7
+ stage: test
+ cache:
+ <<: *cache
+ policy: pull
script:
- - ruby -v
- - bundle env
+ - bundle exec rspec --format progress
+
+test:2.6:
+ image: ruby:2.6
+ stage: test
+ cache:
+ <<: *cache
+ policy: pull
+ script:
+ - bundle exec rspec --format progress
-test:
+test:2.5:
+ image: ruby:2.5
stage: test
- needs: [build]
cache:
<<: *cache
policy: pull
@@ -38,7 +51,6 @@ test:
lint:
stage: test
- needs: [build]
cache:
<<: *cache
policy: pull
@@ -47,7 +59,7 @@ lint:
release:
stage: release
- needs: [test, lint]
+ needs: ["test:2.7", "test:2.6", "test:2.5", lint]
rules:
- if: $CI_COMMIT_TAG =~ /^ruby\/v.*$/
cache: