... @@ -40,14 +40,104 @@
... @@ -40,14 +40,104 @@
- merge_requests
- merge_requests
- tags
- tags
.only-code-changes :
.only:variables-canonical-dot-com :
only :
variables :
- $CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAMESPACE =~ /^gitlab-org($|\/)/ # Matches the gitlab-org group or its subgroups
.only:variables_refs-canonical-dot-com-schedules :
extends : .only:variables-canonical-dot-com
only :
refs :
- schedules
.except:refs-deploy :
except :
refs :
- /^\d+-\d+-auto-deploy-\d+$/
.except:refs-master-tags-stable-deploy :
except :
refs :
- master
- tags
- /^[\d-]+-stable(-ee)?$/
- /^\d+-\d+-auto-deploy-\d+$/
.only:kubernetes :
only :
kubernetes : active
.only-review :
extends :
- .only:variables-canonical-dot-com
- .only:kubernetes
- .except:refs-master-tags-stable-deploy
.only-review-schedules :
extends :
- .only:variables_refs-canonical-dot-com-schedules
- .only:kubernetes
- .except:refs-deploy
.code-patterns : &code-patterns
- " .gitlab/ci/**/*"
- " .{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
- " .{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,scss-lint}.yml"
- " .csscomb.json"
- " Dockerfile.assets"
- " *_VERSION"
- " Gemfile{,.lock}"
- " Rakefile"
- " {babel.config,jest.config}.js"
- " config.ru"
- " {package.json,yarn.lock}"
- " {,ee/}{app,bin,config,db,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*"
.backstage-patterns : &backstage-patterns
- " Dangerfile"
- " danger/**/*"
- " {,ee/}fixtures/**/*"
- " {,ee/}rubocop/**/*"
- " {,ee/}spec/**/*"
- " doc/README.md" # Some RSpec test rely on this file
.qa-patterns : &qa-patterns
- " .dockerignore"
- " qa/**/*"
.docs-patterns : &docs-patterns
- " .gitlab/route-map.yml"
- " doc/**/*"
- " .markdownlint.json"
.graphql-patterns : &graphql-patterns
- " {,ee/}app/graphql/**/*"
- " {,ee/}lib/gitlab/graphql/**/*"
.only:changes-code :
only :
changes : *code-patterns
.only:changes-qa :
only :
changes : *qa-patterns
.only:changes-docs :
only :
changes : *docs-patterns
.only:changes-graphql :
only :
changes : *graphql-patterns
.only:changes-code-backstage :
only :
only :
changes :
changes :
- " .gitlab/ci/**/*"
- " .gitlab/ci/**/*"
- " .{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
- " .{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
- " .{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,scss-lint}.yml"
- " .{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,scss-lint}.yml"
- " .csscomb.json"
- " .csscomb.json"
- " Dangerfile"
- " Dockerfile.assets"
- " Dockerfile.assets"
- " *_VERSION"
- " *_VERSION"
- " Gemfile{,.lock}"
- " Gemfile{,.lock}"
... @@ -55,36 +145,41 @@
... @@ -55,36 +145,41 @@
- " {babel.config,jest.config}.js"
- " {babel.config,jest.config}.js"
- " config.ru"
- " config.ru"
- " {package.json,yarn.lock}"
- " {package.json,yarn.lock}"
- " {app,bin,config,danger,db,ee,fixtures,haml_lint,lib,locale,public,rubocop,scripts,spec,symbol,vendor}/**/*"
- " {,ee/}{app,bin,config,db,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*"
# Backstage changes
- " Dangerfile"
- " danger/**/*"
- " {,ee/}fixtures/**/*"
- " {,ee/}rubocop/**/*"
- " {,ee/}spec/**/*"
- " doc/README.md" # Some RSpec test rely on this file
- " doc/README.md" # Some RSpec test rely on this file
.only-qa- changes :
.only: changes-code-qa :
only :
only :
changes :
changes :
- " .gitlab/ci/**/*"
- " .{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
- " .{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,scss-lint}.yml"
- " .csscomb.json"
- " Dockerfile.assets"
- " *_VERSION"
- " Gemfile{,.lock}"
- " Rakefile"
- " {babel.config,jest.config}.js"
- " config.ru"
- " {package.json,yarn.lock}"
- " {,ee/}{app,bin,config,db,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*"
# QA changes
- " .dockerignore"
- " .dockerignore"
- " qa/**/*"
- " qa/**/*"
.only-docs-changes :
.only:changes-code-backstage-qa :
only :
changes :
- " .gitlab/route-map.yml"
- " doc/**/*"
- " .markdownlint.json"
.only-graphql-changes :
only :
changes :
- " {,ee/}app/graphql/**/*"
- " {,ee/}lib/gitlab/graphql/**/*"
.only-code-qa-changes :
only :
only :
changes :
changes :
- " .gitlab/ci/**/*"
- " .gitlab/ci/**/*"
- " .{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
- " .{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
- " .{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,scss-lint}.yml"
- " .{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,scss-lint}.yml"
- " .csscomb.json"
- " .csscomb.json"
- " Dangerfile"
- " Dockerfile.assets"
- " Dockerfile.assets"
- " *_VERSION"
- " *_VERSION"
- " Gemfile{,.lock}"
- " Gemfile{,.lock}"
... @@ -92,36 +187,18 @@
... @@ -92,36 +187,18 @@
- " {babel.config,jest.config}.js"
- " {babel.config,jest.config}.js"
- " config.ru"
- " config.ru"
- " {package.json,yarn.lock}"
- " {package.json,yarn.lock}"
- " {app,bin,config,danger,db,ee,fixtures,haml_lint,lib,locale,public,rubocop,scripts,spec,symbol,vendor}/**/*"
- " {,ee/}{app,bin,config,db,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*"
# Backstage changes
- " Dangerfile"
- " danger/**/*"
- " {,ee/}fixtures/**/*"
- " {,ee/}rubocop/**/*"
- " {,ee/}spec/**/*"
- " doc/README.md" # Some RSpec test rely on this file
- " doc/README.md" # Some RSpec test rely on this file
# QA changes
- " .dockerignore"
- " .dockerignore"
- " qa/**/*"
- " qa/**/*"
.only-review :
only :
variables :
- $CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAMESPACE == "gitlab-org"
kubernetes : active
except :
refs :
- master
- /^\d+-\d+-auto-deploy-\d+$/
- /^[\d-]+-stable(-ee)?$/
.only-review-schedules :
only :
refs :
- schedules
variables :
- $CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAMESPACE == "gitlab-org"
kubernetes : active
.only-canonical-schedules :
only :
refs :
- schedules@gitlab-org/gitlab
- schedules@gitlab-org/gitlab-foss
.use-pg9 :
.use-pg9 :
services :
services :
- name : postgres:9.6
- name : postgres:9.6
...
...
... ...