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
75c13f96
Commit
75c13f96
authored
Jun 28, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run minimal jobs before MR approval
parent
2b8b1f2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
33 deletions
+58
-33
.gitlab/ci/rules.gitlab-ci.yml
.gitlab/ci/rules.gitlab-ci.yml
+58
-33
No files found.
.gitlab/ci/rules.gitlab-ci.yml
View file @
75c13f96
...
...
@@ -34,6 +34,12 @@
.if-merge-request
:
&if-merge-request
if
:
'
$CI_MERGE_REQUEST_IID'
.if-merge-request-approved
:
&if-merge-request-approved
if
:
'
$CI_MERGE_REQUEST_APPROVED'
.if-merge-request-not-approved
:
&if-merge-request-not-approved
if
:
'
$CI_MERGE_REQUEST_APPROVED
!=
"true"'
.if-merge-request-title-as-if-foss
:
&if-merge-request-title-as-if-foss
if
:
'
$CI_MERGE_REQUEST_TITLE
=~
/RUN
AS-IF-FOSS/'
...
...
@@ -70,9 +76,6 @@
.if-cache-credentials-schedule
:
&if-cache-credentials-schedule
if
:
'
$CI_REPO_CACHE_CREDENTIALS
&&
$CI_PIPELINE_SOURCE
==
"schedule"'
.if-merge-request-rspec-minimal-disabled
:
&if-merge-request-rspec-minimal-disabled
if
:
'
$CI_MERGE_REQUEST_IID
&&
$RSPEC_MINIMAL_ENABLED
!=
"true"'
.if-rspec-fail-fast-disabled
:
&if-rspec-fail-fast-disabled
if
:
'
$RSPEC_FAIL_FAST_ENABLED
!=
"true"'
...
...
@@ -612,12 +615,14 @@
###############
.rails:rules:ee-and-foss-migration:
rules
:
-
changes
:
*db-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
changes
:
*db-patterns
.rails:rules:ee-and-foss-migration:minimal:
rules
:
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
when
:
never
...
...
@@ -643,12 +648,14 @@
.rails:rules:ee-and-foss-unit:
rules
:
-
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
changes
:
*backend-patterns
.rails:rules:ee-and-foss-unit:minimal:
rules
:
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
when
:
never
...
...
@@ -660,12 +667,14 @@
.rails:rules:ee-and-foss-integration:
rules
:
-
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
changes
:
*backend-patterns
.rails:rules:ee-and-foss-integration:minimal:
rules
:
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
when
:
never
...
...
@@ -677,12 +686,14 @@
.rails:rules:ee-and-foss-system:
rules
:
-
changes
:
*code-backstage-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
changes
:
*code-backstage-patterns
.rails:rules:ee-and-foss-system:minimal:
rules
:
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
when
:
never
...
...
@@ -694,12 +705,14 @@
.rails:rules:ee-and-foss-fast_spec_helper:
rules
:
-
changes
:
[
"
config/**/*"
]
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
changes
:
[
"
config/**/*"
]
.rails:rules:ee-and-foss-fast_spec_helper:minimal:
rules
:
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
when
:
never
...
...
@@ -718,14 +731,16 @@
rules
:
-
<<
:
*if-not-ee
when
:
never
-
changes
:
*db-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
changes
:
*db-patterns
.rails:rules:ee-only-migration:minimal:
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
when
:
never
...
...
@@ -739,14 +754,16 @@
rules
:
-
<<
:
*if-not-ee
when
:
never
-
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
changes
:
*backend-patterns
.rails:rules:ee-only-unit:minimal:
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
when
:
never
...
...
@@ -760,14 +777,16 @@
rules
:
-
<<
:
*if-not-ee
when
:
never
-
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
changes
:
*backend-patterns
.rails:rules:ee-only-integration:minimal:
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
when
:
never
...
...
@@ -781,14 +800,16 @@
rules
:
-
<<
:
*if-not-ee
when
:
never
-
changes
:
*code-backstage-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
changes
:
*code-backstage-patterns
.rails:rules:ee-only-system:minimal:
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
when
:
never
...
...
@@ -802,11 +823,13 @@
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
<<
:
*if-security-merge-request
changes
:
*db-patterns
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*db-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request
changes
:
*ci-patterns
...
...
@@ -814,7 +837,7 @@
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request
changes
:
*ci-patterns
...
...
@@ -823,17 +846,18 @@
changes
:
*db-patterns
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*db-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
.rails:rules:as-if-foss-unit:
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
<<
:
*if-security-merge-request
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request
changes
:
*ci-patterns
...
...
@@ -841,7 +865,7 @@
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request
changes
:
*ci-patterns
...
...
@@ -850,17 +874,18 @@
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
.rails:rules:as-if-foss-integration:
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
<<
:
*if-security-merge-request
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request
changes
:
*ci-patterns
...
...
@@ -868,7 +893,7 @@
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request
changes
:
*ci-patterns
...
...
@@ -877,17 +902,18 @@
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
.rails:rules:as-if-foss-system:
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request-not-approved
when
:
never
-
<<
:
*if-security-merge-request
changes
:
*code-backstage-patterns
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*code-backstage-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
-
<<
:
*if-merge-request
changes
:
*ci-patterns
...
...
@@ -895,7 +921,7 @@
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-
rspec-minimal-disabl
ed
-
<<
:
*if-merge-request-
approv
ed
when
:
never
-
<<
:
*if-merge-request
changes
:
*ci-patterns
...
...
@@ -904,7 +930,6 @@
changes
:
*code-backstage-patterns
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*code-backstage-patterns
-
<<
:
*if-merge-request-title-run-all-rspec
.rails:rules:ee-and-foss-db-library-code:
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