diff options
| -rw-r--r-- | .gitlab-ci.yml | 10 | ||||
| -rw-r--r-- | CLI/ruby/.gitlab-ci.yml | 39 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..07f1eec --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +stages: + - triggers + +ruby: + stage: triggers + trigger: + include: CLI/ruby/.gitlab-ci.yml + rules: + - changes: + - CLI/ruby/* 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 |
