From 9df819353fadc6a02b037b105f3ca2e0e2a9e1f0 Mon Sep 17 00:00:00 2001 From: a14m Date: Wed, 9 Dec 2020 09:41:03 +0100 Subject: Configure ruby build/test/lint steps --- CLI/ruby/.gitlab-ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 CLI/ruby/.gitlab-ci.yml (limited to 'CLI') 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 -- cgit v1.2.3