diff options
| author | a14m <[email protected]> | 2020-12-12 21:04:23 +0000 |
|---|---|---|
| committer | a14m <[email protected]> | 2020-12-12 21:04:23 +0000 |
| commit | 784e4d51ddce7de440e124c0d0df63758532f980 (patch) | |
| tree | a58a0d7545103a12d0b2d676cbf40d31dd4f9c01 /CLI/ruby/.gitlab-ci.yml | |
| parent | 6efdc07ea344e38b45b77c65a26a45453cc69860 (diff) | |
| parent | ca060b58fc9d2b237cdd3002a936b6da03195dde (diff) | |
Merge branch 'feature/multiple-ruby-version-tests' into 'master'
Feature/multiple ruby version tests
See merge request a14m/game-of-life!7
Diffstat (limited to 'CLI/ruby/.gitlab-ci.yml')
| -rw-r--r-- | CLI/ruby/.gitlab-ci.yml | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/CLI/ruby/.gitlab-ci.yml b/CLI/ruby/.gitlab-ci.yml index 930afec..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,26 +18,39 @@ 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: + - bundle exec rspec --format progress + +test:2.6: + image: ruby:2.6 + stage: test + cache: + <<: *cache + policy: pull script: - - ruby -v - - bundle env + - bundle exec rspec --format progress -test: +test:2.5: + image: ruby:2.5 stage: test - needs: [build] cache: <<: *cache policy: pull script: - - bundle exec rspec + - bundle exec rspec --format progress 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: |
