From aa78cc2cf340418ce73a22a7e11a6294592c8ad9 Mon Sep 17 00:00:00 2001 From: a14m Date: Sat, 12 Dec 2020 20:28:36 +0100 Subject: Add ruby 2.6/2.5 testing and remove useless build step --- CLI/ruby/.gitlab-ci.yml | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'CLI/ruby') 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: -- cgit v1.2.3