diff options
| author | a14m <[email protected]> | 2020-12-09 09:41:03 +0100 |
|---|---|---|
| committer | a14m <[email protected]> | 2020-12-09 12:55:29 +0100 |
| commit | 9df819353fadc6a02b037b105f3ca2e0e2a9e1f0 (patch) | |
| tree | 832ce1bf46ba3c36ae7a5054c440f4c2096609b4 /CLI/ruby | |
| parent | 2e9e3340d78ce282e563e7e78f34eaf0addb0cad (diff) | |
Configure ruby build/test/lint steps
Diffstat (limited to 'CLI/ruby')
| -rw-r--r-- | CLI/ruby/.gitlab-ci.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/CLI/ruby/.gitlab-ci.yml b/CLI/ruby/.gitlab-ci.yml new file mode 100644 index 0000000..914821f --- /dev/null +++ b/CLI/ruby/.gitlab-ci.yml @@ -0,0 +1,39 @@ +image: ruby:2.7 + +stages: + - build + - test + - lint + - release + +variables: + BUNDLE_PATH: .bundle/vendor + +cache: + 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] + script: + - bundle exec rspec + +lint: + stage: test + needs: [build] + script: + - bundle exec rubocop |
