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
5c420f77
Commit
5c420f77
authored
Apr 27, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip irrelevant jobs for documentation only changes
parent
6cad4b0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
.gitlab-ci.yml
.gitlab-ci.yml
+26
-0
No files found.
.gitlab-ci.yml
View file @
5c420f77
...
...
@@ -82,6 +82,12 @@ stages:
-
//@gitlab-org/gitlab-ee
-
//@gitlab/gitlab-ee
# Skip all jobs except the ones that begin with 'docs/', for commits
# including ONLY doc changes inside the 'doc/` directory.
.except-docs
:
&except-docs
except
:
-
/^docs\/*/
.rspec-knapsack
:
&rspec-knapsack
stage
:
test
<<
:
*dedicated-runner
...
...
@@ -105,11 +111,13 @@ stages:
.rspec-knapsack-pg
:
&rspec-knapsack-pg
<<
:
*rspec-knapsack
<<
:
*use-pg
<<
:
*except-docs
.rspec-knapsack-mysql
:
&rspec-knapsack-mysql
<<
:
*rspec-knapsack
<<
:
*use-mysql
<<
:
*only-master-and-ee-or-mysql
<<
:
*except-docs
.spinach-knapsack
:
&spinach-knapsack
stage
:
test
...
...
@@ -134,16 +142,19 @@ stages:
.spinach-knapsack-pg
:
&spinach-knapsack-pg
<<
:
*spinach-knapsack
<<
:
*use-pg
<<
:
*except-docs
.spinach-knapsack-mysql
:
&spinach-knapsack-mysql
<<
:
*spinach-knapsack
<<
:
*use-mysql
<<
:
*only-master-and-ee-or-mysql
<<
:
*except-docs
# Prepare and merge knapsack tests
knapsack
:
<<
:
*knapsack-state
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
prepare
script
:
-
mkdir -p knapsack/${CI_PROJECT_NAME}/
...
...
@@ -170,6 +181,7 @@ update-knapsack:
setup-test-env
:
<<
:
*use-pg
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
prepare
script
:
-
node --version
...
...
@@ -257,6 +269,7 @@ spinach mysql 9 10: *spinach-knapsack-mysql
.exec
:
&exec
<<
:
*ruby-static-analysis
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
test
script
:
-
bundle exec $CI_JOB_NAME
...
...
@@ -264,6 +277,7 @@ spinach mysql 9 10: *spinach-knapsack-mysql
rubocop
:
<<
:
*ruby-static-analysis
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
test
script
:
-
bundle exec "rubocop --require rubocop-rspec"
...
...
@@ -285,10 +299,12 @@ rake downtime_check: *exec
rake pg db:migrate:reset:
<<
:
*db-migrate-reset
<<
:
*use-pg
<<
:
*except-docs
rake mysql db:migrate:reset:
<<
:
*db-migrate-reset
<<
:
*use-mysql
<<
:
*except-docs
.db-rollback
:
&db-rollback
stage
:
test
...
...
@@ -300,10 +316,12 @@ rake mysql db:migrate:reset:
rake pg db:rollback:
<<
:
*db-rollback
<<
:
*use-pg
<<
:
*except-docs
rake mysql db:rollback:
<<
:
*db-rollback
<<
:
*use-mysql
<<
:
*except-docs
.db-seed_fu
:
&db-seed_fu
stage
:
test
...
...
@@ -325,14 +343,17 @@ rake mysql db:rollback:
rake pg db:seed_fu:
<<
:
*db-seed_fu
<<
:
*use-pg
<<
:
*except-docs
rake mysql db:seed_fu:
<<
:
*db-seed_fu
<<
:
*use-mysql
<<
:
*except-docs
rake gitlab:assets:compile:
stage
:
test
<<
:
*dedicated-runner
<<
:
*except-docs
dependencies
:
[]
variables
:
NODE_ENV
:
"
production"
...
...
@@ -356,6 +377,7 @@ rake karma:
stage
:
test
<<
:
*use-pg
<<
:
*dedicated-runner
<<
:
*except-docs
variables
:
BABEL_ENV
:
"
coverage"
script
:
...
...
@@ -396,6 +418,7 @@ bundler:check:
stage
:
test
<<
:
*dedicated-runner
<<
:
*ruby-static-analysis
<<
:
*except-docs
script
:
-
bundle check
...
...
@@ -443,6 +466,7 @@ coverage:
stage
:
post-test
services
:
[]
<<
:
*dedicated-runner
<<
:
*except-docs
variables
:
SETUP_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
true"
...
...
@@ -458,6 +482,7 @@ coverage:
lint:javascript:
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
test
before_script
:
[]
script
:
...
...
@@ -465,6 +490,7 @@ lint:javascript:
lint:javascript:report:
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
post-test
before_script
:
[]
script
:
...
...
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