Commit 308f9dd8 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Add CI config for mail-smtp_pool

This job runs the specs in the vendored gem's directory
parent 0d3dd338
...@@ -100,6 +100,7 @@ include: ...@@ -100,6 +100,7 @@ include:
- local: .gitlab/ci/qa.gitlab-ci.yml - local: .gitlab/ci/qa.gitlab-ci.yml
- local: .gitlab/ci/reports.gitlab-ci.yml - local: .gitlab/ci/reports.gitlab-ci.yml
- local: .gitlab/ci/rails.gitlab-ci.yml - local: .gitlab/ci/rails.gitlab-ci.yml
- local: .gitlab/ci/vendored-gems.gitlab-ci.yml
- local: .gitlab/ci/review.gitlab-ci.yml - local: .gitlab/ci/review.gitlab-ci.yml
- local: .gitlab/ci/rules.gitlab-ci.yml - local: .gitlab/ci/rules.gitlab-ci.yml
- local: .gitlab/ci/setup.gitlab-ci.yml - local: .gitlab/ci/setup.gitlab-ci.yml
......
...@@ -925,6 +925,16 @@ ...@@ -925,6 +925,16 @@
- <<: *if-merge-request - <<: *if-merge-request
changes: [".gitlab/ci/rails.gitlab-ci.yml"] changes: [".gitlab/ci/rails.gitlab-ci.yml"]
#######################
# Vendored gems rules #
#######################
.vendor:rules:mail-smtp_pool:
rules:
- <<: *if-merge-request
changes: ["vendor/gems/mail-smtp_pool/**/*"]
- <<: *if-merge-request-title-run-all-rspec
################## ##################
# Releases rules # # Releases rules #
################## ##################
......
vendor mail-smtp_pool:
extends:
- .vendor:rules:mail-smtp_pool
needs: []
trigger:
include: vendor/gems/mail-smtp_pool/.gitlab-ci.yml
strategy: depend
.test-template: &test workflow:
rules:
- if: $CI_MERGE_REQUEST_ID
.rspec:
cache: cache:
key: mail-smtp_pool-ruby
paths: paths:
- vendor/ruby - vendor/gems/mail-smtp_pool/vendor/ruby
before_script: before_script:
- cd vendor/gems/mail-smtp_pool
- ruby -v # Print out ruby version for debugging - ruby -v # Print out ruby version for debugging
- gem install bundler --no-document # Bundler is not installed with the image - gem install bundler --no-document # Bundler is not installed with the image
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby - bundle config set --local path 'vendor' # Install dependencies into ./vendor/ruby
- bundle install -j $(nproc)
script: script:
- bundle exec rspec spec - bundle exec rspec
rspec-2.6: rspec-2.6:
image: "ruby:2.6" image: "ruby:2.6"
<<: *test extends: .rspec
rspec-2.7: rspec-2.7:
image: "ruby:2.7" image: "ruby:2.7"
<<: *test extends: .rspec
rspec-3.0: rspec-3.0:
image: "ruby:3.0" image: "ruby:3.0"
<<: *test extends: .rspec
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment