Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
47037c3c
Commit
47037c3c
authored
Oct 28, 2021
by
Rémy Coutable
Committed by
Ash McKenzie
Oct 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: Introduce .rails:rules:setup-test-env to match Workhorse changes
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
da9ae6fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
17 deletions
+64
-17
.gitlab/ci/rails.gitlab-ci.yml
.gitlab/ci/rails.gitlab-ci.yml
+1
-1
.gitlab/ci/rules.gitlab-ci.yml
.gitlab/ci/rules.gitlab-ci.yml
+63
-16
No files found.
.gitlab/ci/rails.gitlab-ci.yml
View file @
47037c3c
...
...
@@ -165,7 +165,7 @@ setup-test-env:
extends
:
-
.rails-job-base
-
.setup-test-env-cache
-
.rails:rules:
code-backstage-qa
-
.rails:rules:
setup-test-env
stage
:
prepare
variables
:
SETUP_DB
:
"
false"
...
...
.gitlab/ci/rules.gitlab-ci.yml
View file @
47037c3c
...
...
@@ -211,6 +211,7 @@
.startup-css-patterns
:
&startup-css-patterns
-
"
{,ee/,jh/}app/assets/stylesheets/startup/**/*"
# Backend patterns + .ci-patterns
.backend-patterns
:
&backend-patterns
-
"
{,jh/}Gemfile{,.lock}"
-
"
Rakefile"
...
...
@@ -224,6 +225,7 @@
-
"
.gitlab/ci/**/*"
-
"
*_VERSION"
# DB patterns + .ci-patterns
.db-patterns
:
&db-patterns
-
"
{,ee/,jh/}{,spec/}{db,migrations}/**/*"
-
"
{,ee/,jh/}{,spec/}lib/{,ee/,jh/}gitlab/database/**/*"
...
...
@@ -252,6 +254,11 @@
-
"
{,ee/,jh/}spec/**/*"
-
"
{,spec/}tooling/**/*"
.qa-patterns
:
&qa-patterns
-
"
.dockerignore"
-
"
qa/**/*"
# Code patterns + .ci-patterns + .workhorse-patterns
.code-patterns
:
&code-patterns
-
"
{package.json,yarn.lock}"
-
"
.browserslistrc"
...
...
@@ -260,9 +267,6 @@
-
"
.csscomb.json"
-
"
Dockerfile.assets"
-
"
vendor/assets/**/*"
# CI changes
-
"
.gitlab-ci.yml"
-
"
.gitlab/ci/**/*"
-
"
.{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
-
"
.{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,rubocop_manual_todo}.yml"
-
"
*_VERSION"
...
...
@@ -273,11 +277,11 @@
-
"
{,ee/,jh/}{app,bin,config,db,generator_templates,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*"
-
"
doc/api/graphql/reference/*"
# Files in this folder are auto-generated
-
"
data/whats_new/*.yml"
# CI changes
-
"
.gitlab-ci.yml"
-
"
.gitlab/ci/**/*"
.qa-patterns
:
&qa-patterns
-
"
.dockerignore"
-
"
qa/**/*"
# .code-patterns + .backstage-patterns
.code-backstage-patterns
:
&code-backstage-patterns
-
"
{package.json,yarn.lock}"
-
"
.browserslistrc"
...
...
@@ -286,9 +290,6 @@
-
"
.csscomb.json"
-
"
Dockerfile.assets"
-
"
vendor/assets/**/*"
# CI changes
-
"
.gitlab-ci.yml"
-
"
.gitlab/ci/**/*"
-
"
.{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
-
"
.{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,rubocop_manual_todo}.yml"
-
"
*_VERSION"
...
...
@@ -299,6 +300,9 @@
-
"
{,ee/,jh/}{app,bin,config,db,generator_templates,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*"
-
"
doc/api/graphql/reference/*"
# Files in this folder are auto-generated
-
"
data/whats_new/*.yml"
# CI changes
-
"
.gitlab-ci.yml"
-
"
.gitlab/ci/**/*"
# Backstage changes
-
"
Dangerfile"
-
"
danger/**/*"
...
...
@@ -307,6 +311,7 @@
-
"
{,ee/,jh/}spec/**/*"
-
"
{,spec/}tooling/**/*"
# .code-patterns + .qa-patterns
.code-qa-patterns
:
&code-qa-patterns
-
"
{package.json,yarn.lock}"
-
"
.browserslistrc"
...
...
@@ -315,9 +320,6 @@
-
"
.csscomb.json"
-
"
Dockerfile.assets"
-
"
vendor/assets/**/*"
# CI changes
-
"
.gitlab-ci.yml"
-
"
.gitlab/ci/**/*"
-
"
.{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
-
"
.{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,rubocop_manual_todo}.yml"
-
"
*_VERSION"
...
...
@@ -328,10 +330,14 @@
-
"
{,ee/,jh/}{app,bin,config,db,generator_templates,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*"
-
"
doc/api/graphql/reference/*"
# Files in this folder are auto-generated
-
"
data/whats_new/*.yml"
# CI changes
-
"
.gitlab-ci.yml"
-
"
.gitlab/ci/**/*"
# QA changes
-
"
.dockerignore"
-
"
qa/**/*"
# .code-patterns + .backstage-patterns + .qa-patterns
.code-backstage-qa-patterns
:
&code-backstage-qa-patterns
-
"
{package.json,yarn.lock}"
-
"
.browserslistrc"
...
...
@@ -340,9 +346,39 @@
-
"
.csscomb.json"
-
"
Dockerfile.assets"
-
"
vendor/assets/**/*"
-
"
.{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
-
"
.{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,rubocop_manual_todo}.yml"
-
"
*_VERSION"
-
"
{,jh/}Gemfile{,.lock}"
-
"
Rakefile"
-
"
tests.yml"
-
"
config.ru"
-
"
{,ee/,jh/}{app,bin,config,db,generator_templates,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*"
-
"
doc/api/graphql/reference/*"
# Files in this folder are auto-generated
-
"
data/whats_new/*.yml"
# CI changes
-
"
.gitlab-ci.yml"
-
"
.gitlab/ci/**/*"
# Backstage changes
-
"
Dangerfile"
-
"
danger/**/*"
-
"
{,ee/,jh/}fixtures/**/*"
-
"
{,ee/,jh/}rubocop/**/*"
-
"
{,ee/,jh/}spec/**/*"
-
"
{,spec/}tooling/**/*"
# QA changes
-
"
.dockerignore"
-
"
qa/**/*"
# .code-backstage-qa-patterns + .workhorse-patterns
.setup-test-env-patterns
:
&setup-test-env-patterns
-
"
{package.json,yarn.lock}"
-
"
.browserslistrc"
-
"
babel.config.js"
-
"
jest.config.{base,integration,unit}.js"
-
"
.csscomb.json"
-
"
Dockerfile.assets"
-
"
vendor/assets/**/*"
-
"
.{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}"
-
"
.{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,rubocop_manual_todo}.yml"
-
"
*_VERSION"
...
...
@@ -353,6 +389,9 @@
-
"
{,ee/,jh/}{app,bin,config,db,generator_templates,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*"
-
"
doc/api/graphql/reference/*"
# Files in this folder are auto-generated
-
"
data/whats_new/*.yml"
# CI changes
-
"
.gitlab-ci.yml"
-
"
.gitlab/ci/**/*"
# Backstage changes
-
"
Dangerfile"
-
"
danger/**/*"
...
...
@@ -363,9 +402,12 @@
# QA changes
-
"
.dockerignore"
-
"
qa/**/*"
# Workhorse changes
-
"
GITLAB_WORKHORSE_VERSION"
-
"
workhorse/**/*"
-
"
.gitlab/ci/workhorse.gitlab-ci.yml"
.code-backstage-danger-patterns
:
&code-backstage-danger-patterns
# Backstage changes
.danger-patterns
:
&danger-patterns
-
"
Dangerfile"
-
"
danger/**/*"
-
"
tooling/danger/**/*"
...
...
@@ -713,6 +755,11 @@
###############
# Rails rules #
###############
.rails:rules:setup-test-env:
rules
:
-
changes
:
*setup-test-env-patterns
-
<<
:
*if-merge-request-labels-run-all-rspec
.rails:rules:decomposed-databases:
rules
:
-
<<
:
*if-merge-request-labels-run-decomposed
...
...
@@ -1617,7 +1664,7 @@
.review:rules:danger-local:
rules
:
-
if
:
'
$CI_MERGE_REQUEST_IID'
changes
:
*
code-backstage-
danger-patterns
changes
:
*danger-patterns
###############
# Setup rules #
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment