diff options
| author | a14m <[email protected]> | 2020-12-12 20:28:36 +0100 |
|---|---|---|
| committer | a14m <[email protected]> | 2020-12-12 20:44:53 +0100 |
| commit | aa78cc2cf340418ce73a22a7e11a6294592c8ad9 (patch) | |
| tree | 64459629dc59b9b8acc8a13169a3c8054e911d56 | |
| parent | c11be3e4f92fb6c5d636ba2d817ae6aaaed5fc60 (diff) | |
Add ruby 2.6/2.5 testing and remove useless build step
| -rw-r--r-- | CLI/ruby/.gitlab-ci.yml | 30 |
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: |
