diff options
| author | a14m <[email protected]> | 2020-12-09 14:03:36 +0000 |
|---|---|---|
| committer | a14m <[email protected]> | 2020-12-09 14:03:36 +0000 |
| commit | 457f78b6d27ebded45635bbf1be4c5af1bef531c (patch) | |
| tree | 0c59279e57f84edcef56454f8ebb6661a2fb380a /CLI/ruby | |
| parent | f9ebb8599ea6600baf87c81bbcb871f4b35c4eae (diff) | |
| parent | 18d7b02558c34160f2e80d3380a2530723b325b0 (diff) | |
Merge branch 'feature/move-to-wercker' into 'master'
Feature/move to gitlab ci
See merge request a14m/game-of-life!3
Diffstat (limited to 'CLI/ruby')
| -rw-r--r-- | CLI/ruby/.gitlab-ci.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/CLI/ruby/.gitlab-ci.yml b/CLI/ruby/.gitlab-ci.yml new file mode 100644 index 0000000..f96599c --- /dev/null +++ b/CLI/ruby/.gitlab-ci.yml @@ -0,0 +1,46 @@ +image: ruby:2.7 + +stages: + - build + - test + - lint + - release + +variables: + BUNDLE_PATH: .bundle/vendor + +cache: &cache + policy: pull-push + key: + files: + - Gemfile.lock + paths: + - CLI/ruby/.bundle/vendor + +before_script: + - cd CLI/ruby + - bundle install -j $(nproc) + +build: + stage: build + script: + - ruby -v + - bundle env + +test: + stage: test + needs: [build] + cache: + <<: *cache + policy: pull + script: + - bundle exec rspec + +lint: + stage: test + needs: [build] + cache: + <<: *cache + policy: pull + script: + - bundle exec rubocop |
