Commit fdaec8f7 authored by Andreas Brandl's avatar Andreas Brandl

Trigger db testing only when token is present

parent 7f00da29
...@@ -377,7 +377,7 @@ db:rollback: ...@@ -377,7 +377,7 @@ db:rollback:
- bundle exec rake db:migrate SKIP_SCHEMA_VERSION_CHECK=true - bundle exec rake db:migrate SKIP_SCHEMA_VERSION_CHECK=true
db:gitlabcom-database-testing: db:gitlabcom-database-testing:
extends: .rails:rules:ee-and-foss-mr-with-migration extends: .rails:rules:db:gitlabcom-database-testing
stage: test stage: test
image: ruby:2.7-alpine image: ruby:2.7-alpine
needs: [] needs: []
......
...@@ -523,6 +523,13 @@ ...@@ -523,6 +523,13 @@
changes: *db-patterns changes: *db-patterns
- <<: *if-merge-request-title-run-all-rspec - <<: *if-merge-request-title-run-all-rspec
.rails:rules:db:gitlabcom-database-testing:
rules:
- if: '$GITLABCOM_DATABASE_TESTING_TRIGGER_TOKEN == null'
when: never
- <<: *if-merge-request
changes: *db-patterns
.rails:rules:ee-and-foss-unit: .rails:rules:ee-and-foss-unit:
rules: rules:
- changes: *backend-patterns - changes: *backend-patterns
......
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