Commit 4ce70374 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'ee-except-qa-and-docs' into 'master'

EE: Make sure two except won't overwrite each other

Closes gitlab-qa#140

See merge request gitlab-org/gitlab-ee!3827
parents 6be7774e 9f4f0cd4
...@@ -88,9 +88,18 @@ stages: ...@@ -88,9 +88,18 @@ stages:
except: except:
- /(^docs[\/-].*|.*-docs$)/ - /(^docs[\/-].*|.*-docs$)/
.except-qa: &except-qa
except:
- /(^qa[\/-].*|.*-qa$)/
.except-docs-and-qa: &except-docs-and-qa
except:
- /(^docs[\/-].*|.*-docs$)/
- /(^qa[\/-].*|.*-qa$)/
.rspec-metadata: &rspec-metadata .rspec-metadata: &rspec-metadata
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
stage: test stage: test
script: script:
...@@ -139,7 +148,7 @@ stages: ...@@ -139,7 +148,7 @@ stages:
.spinach-metadata: &spinach-metadata .spinach-metadata: &spinach-metadata
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
stage: test stage: test
script: script:
...@@ -194,6 +203,7 @@ package-qa: ...@@ -194,6 +203,7 @@ package-qa:
# Review docs base # Review docs base
.review-docs: &review-docs .review-docs: &review-docs
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-qa
image: ruby:2.4-alpine image: ruby:2.4-alpine
before_script: before_script:
- gem install gitlab --no-doc - gem install gitlab --no-doc
...@@ -238,7 +248,7 @@ review-docs-cleanup: ...@@ -238,7 +248,7 @@ review-docs-cleanup:
# Retrieve knapsack and rspec_flaky reports # Retrieve knapsack and rspec_flaky reports
retrieve-tests-metadata: retrieve-tests-metadata:
<<: *tests-metadata-state <<: *tests-metadata-state
<<: *except-docs <<: *except-docs-and-qa
stage: prepare stage: prepare
cache: cache:
key: tests_metadata key: tests_metadata
...@@ -290,6 +300,7 @@ flaky-examples-check: ...@@ -290,6 +300,7 @@ flaky-examples-check:
except: except:
- master - master
- /(^docs[\/-].*|.*-docs$)/ - /(^docs[\/-].*|.*-docs$)/
- /(^qa[\/-].*|.*-qa$)/
artifacts: artifacts:
expire_in: 30d expire_in: 30d
paths: paths:
...@@ -394,7 +405,7 @@ spinach-mysql 3 4: *spinach-metadata-mysql ...@@ -394,7 +405,7 @@ spinach-mysql 3 4: *spinach-metadata-mysql
.rake-exec: &rake-exec .rake-exec: &rake-exec
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
<<: *ruby-static-analysis <<: *ruby-static-analysis
stage: test stage: test
...@@ -414,6 +425,7 @@ static-analysis: ...@@ -414,6 +425,7 @@ static-analysis:
# - Make sure cURL examples in API docs use the full switches # - Make sure cURL examples in API docs use the full switches
docs lint: docs lint:
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-qa
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:nanoc-bootstrap-ruby-2.4-alpine" image: "registry.gitlab.com/gitlab-org/gitlab-build-images:nanoc-bootstrap-ruby-2.4-alpine"
stage: test stage: test
cache: {} cache: {}
...@@ -436,6 +448,7 @@ downtime_check: ...@@ -436,6 +448,7 @@ downtime_check:
- tags - tags
- /^[\d-]+-stable(-ee)?$/ - /^[\d-]+-stable(-ee)?$/
- /(^docs[\/-].*|.*-docs$)/ - /(^docs[\/-].*|.*-docs$)/
- /(^qa[\/-].*|.*-qa$)/
ee_compat_check: ee_compat_check:
<<: *rake-exec <<: *rake-exec
...@@ -456,7 +469,7 @@ ee_compat_check: ...@@ -456,7 +469,7 @@ ee_compat_check:
# DB migration, rollback, and seed jobs # DB migration, rollback, and seed jobs
.db-migrate-reset: &db-migrate-reset .db-migrate-reset: &db-migrate-reset
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
stage: test stage: test
script: script:
...@@ -478,7 +491,7 @@ db:check-schema-pg: ...@@ -478,7 +491,7 @@ db:check-schema-pg:
.migration-paths: &migration-paths .migration-paths: &migration-paths
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
stage: test stage: test
variables: variables:
...@@ -505,7 +518,7 @@ migration:path-mysql: ...@@ -505,7 +518,7 @@ migration:path-mysql:
.db-rollback: &db-rollback .db-rollback: &db-rollback
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
stage: test stage: test
script: script:
...@@ -522,7 +535,7 @@ db:rollback-mysql: ...@@ -522,7 +535,7 @@ db:rollback-mysql:
.db-seed_fu: &db-seed_fu .db-seed_fu: &db-seed_fu
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
stage: test stage: test
variables: variables:
...@@ -550,7 +563,7 @@ db:seed_fu-mysql: ...@@ -550,7 +563,7 @@ db:seed_fu-mysql:
# Frontend-related jobs # Frontend-related jobs
gitlab:assets:compile: gitlab:assets:compile:
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
stage: test stage: test
dependencies: [] dependencies: []
...@@ -572,7 +585,7 @@ gitlab:assets:compile: ...@@ -572,7 +585,7 @@ gitlab:assets:compile:
karma: karma:
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
<<: *use-pg <<: *use-pg
stage: test stage: test
...@@ -626,7 +639,7 @@ qa:internal: ...@@ -626,7 +639,7 @@ qa:internal:
coverage: coverage:
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
stage: post-test stage: post-test
services: [] services: []
...@@ -645,7 +658,7 @@ coverage: ...@@ -645,7 +658,7 @@ coverage:
lint:javascript:report: lint:javascript:report:
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
stage: post-test stage: post-test
dependencies: dependencies:
...@@ -704,7 +717,7 @@ cache gems: ...@@ -704,7 +717,7 @@ cache gems:
gitlab_git_test: gitlab_git_test:
<<: *dedicated-runner <<: *dedicated-runner
<<: *except-docs <<: *except-docs-and-qa
<<: *pull-cache <<: *pull-cache
variables: variables:
SETUP_DB: "false" SETUP_DB: "false"
......
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