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
0f327e02
Commit
0f327e02
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
ef518df2
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 @
0f327e02
...
@@ -68,6 +68,12 @@ stages:
...
@@ -68,6 +68,12 @@ stages:
-
//@gitlab-org/gitlab-ee
-
//@gitlab-org/gitlab-ee
-
//@gitlab/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
.rspec-knapsack
:
&rspec-knapsack
stage
:
test
stage
:
test
<<
:
*dedicated-runner
<<
:
*dedicated-runner
...
@@ -91,11 +97,13 @@ stages:
...
@@ -91,11 +97,13 @@ stages:
.rspec-knapsack-pg
:
&rspec-knapsack-pg
.rspec-knapsack-pg
:
&rspec-knapsack-pg
<<
:
*rspec-knapsack
<<
:
*rspec-knapsack
<<
:
*use-pg
<<
:
*use-pg
<<
:
*except-docs
.rspec-knapsack-mysql
:
&rspec-knapsack-mysql
.rspec-knapsack-mysql
:
&rspec-knapsack-mysql
<<
:
*rspec-knapsack
<<
:
*rspec-knapsack
<<
:
*use-mysql
<<
:
*use-mysql
<<
:
*only-master-and-ee-or-mysql
<<
:
*only-master-and-ee-or-mysql
<<
:
*except-docs
.spinach-knapsack
:
&spinach-knapsack
.spinach-knapsack
:
&spinach-knapsack
stage
:
test
stage
:
test
...
@@ -120,16 +128,19 @@ stages:
...
@@ -120,16 +128,19 @@ stages:
.spinach-knapsack-pg
:
&spinach-knapsack-pg
.spinach-knapsack-pg
:
&spinach-knapsack-pg
<<
:
*spinach-knapsack
<<
:
*spinach-knapsack
<<
:
*use-pg
<<
:
*use-pg
<<
:
*except-docs
.spinach-knapsack-mysql
:
&spinach-knapsack-mysql
.spinach-knapsack-mysql
:
&spinach-knapsack-mysql
<<
:
*spinach-knapsack
<<
:
*spinach-knapsack
<<
:
*use-mysql
<<
:
*use-mysql
<<
:
*only-master-and-ee-or-mysql
<<
:
*only-master-and-ee-or-mysql
<<
:
*except-docs
# Prepare and merge knapsack tests
# Prepare and merge knapsack tests
knapsack
:
knapsack
:
<<
:
*knapsack-state
<<
:
*knapsack-state
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
prepare
stage
:
prepare
script
:
script
:
-
mkdir -p knapsack/${CI_PROJECT_NAME}/
-
mkdir -p knapsack/${CI_PROJECT_NAME}/
...
@@ -156,6 +167,7 @@ update-knapsack:
...
@@ -156,6 +167,7 @@ update-knapsack:
setup-test-env
:
setup-test-env
:
<<
:
*use-pg
<<
:
*use-pg
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
prepare
stage
:
prepare
script
:
script
:
-
node --version
-
node --version
...
@@ -243,6 +255,7 @@ spinach mysql 9 10: *spinach-knapsack-mysql
...
@@ -243,6 +255,7 @@ spinach mysql 9 10: *spinach-knapsack-mysql
.exec
:
&exec
.exec
:
&exec
<<
:
*ruby-static-analysis
<<
:
*ruby-static-analysis
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
test
stage
:
test
script
:
script
:
-
bundle exec $CI_JOB_NAME
-
bundle exec $CI_JOB_NAME
...
@@ -250,6 +263,7 @@ spinach mysql 9 10: *spinach-knapsack-mysql
...
@@ -250,6 +263,7 @@ spinach mysql 9 10: *spinach-knapsack-mysql
rubocop
:
rubocop
:
<<
:
*ruby-static-analysis
<<
:
*ruby-static-analysis
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
test
stage
:
test
script
:
script
:
-
bundle exec "rubocop --require rubocop-rspec"
-
bundle exec "rubocop --require rubocop-rspec"
...
@@ -266,6 +280,7 @@ rake downtime_check:
...
@@ -266,6 +280,7 @@ rake downtime_check:
-
master
-
master
-
tags
-
tags
-
/^[\d-]+-stable(-ee)?$/
-
/^[\d-]+-stable(-ee)?$/
-
/^docs\/*/
rake ee_compat_check
:
rake ee_compat_check
:
<<
:
*exec
<<
:
*exec
...
@@ -296,10 +311,12 @@ rake ee_compat_check:
...
@@ -296,10 +311,12 @@ rake ee_compat_check:
rake pg db:migrate:reset:
rake pg db:migrate:reset:
<<
:
*db-migrate-reset
<<
:
*db-migrate-reset
<<
:
*use-pg
<<
:
*use-pg
<<
:
*except-docs
rake mysql db:migrate:reset:
rake mysql db:migrate:reset:
<<
:
*db-migrate-reset
<<
:
*db-migrate-reset
<<
:
*use-mysql
<<
:
*use-mysql
<<
:
*except-docs
.db-rollback
:
&db-rollback
.db-rollback
:
&db-rollback
stage
:
test
stage
:
test
...
@@ -311,10 +328,12 @@ rake mysql db:migrate:reset:
...
@@ -311,10 +328,12 @@ rake mysql db:migrate:reset:
rake pg db:rollback:
rake pg db:rollback:
<<
:
*db-rollback
<<
:
*db-rollback
<<
:
*use-pg
<<
:
*use-pg
<<
:
*except-docs
rake mysql db:rollback:
rake mysql db:rollback:
<<
:
*db-rollback
<<
:
*db-rollback
<<
:
*use-mysql
<<
:
*use-mysql
<<
:
*except-docs
.db-seed_fu
:
&db-seed_fu
.db-seed_fu
:
&db-seed_fu
stage
:
test
stage
:
test
...
@@ -336,14 +355,17 @@ rake mysql db:rollback:
...
@@ -336,14 +355,17 @@ rake mysql db:rollback:
rake pg db:seed_fu:
rake pg db:seed_fu:
<<
:
*db-seed_fu
<<
:
*db-seed_fu
<<
:
*use-pg
<<
:
*use-pg
<<
:
*except-docs
rake mysql db:seed_fu:
rake mysql db:seed_fu:
<<
:
*db-seed_fu
<<
:
*db-seed_fu
<<
:
*use-mysql
<<
:
*use-mysql
<<
:
*except-docs
rake gitlab:assets:compile:
rake gitlab:assets:compile:
stage
:
test
stage
:
test
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
dependencies
:
[]
dependencies
:
[]
variables
:
variables
:
NODE_ENV
:
"
production"
NODE_ENV
:
"
production"
...
@@ -367,6 +389,7 @@ rake karma:
...
@@ -367,6 +389,7 @@ rake karma:
stage
:
test
stage
:
test
<<
:
*use-pg
<<
:
*use-pg
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
variables
:
variables
:
BABEL_ENV
:
"
coverage"
BABEL_ENV
:
"
coverage"
script
:
script
:
...
@@ -447,6 +470,7 @@ coverage:
...
@@ -447,6 +470,7 @@ coverage:
stage
:
post-test
stage
:
post-test
services
:
[]
services
:
[]
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
variables
:
variables
:
SETUP_DB
:
"
false"
SETUP_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
true"
USE_BUNDLE_INSTALL
:
"
true"
...
@@ -462,6 +486,7 @@ coverage:
...
@@ -462,6 +486,7 @@ coverage:
lint:javascript:
lint:javascript:
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
test
stage
:
test
before_script
:
[]
before_script
:
[]
script
:
script
:
...
@@ -469,6 +494,7 @@ lint:javascript:
...
@@ -469,6 +494,7 @@ lint:javascript:
lint:javascript:report:
lint:javascript:report:
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
post-test
stage
:
post-test
before_script
:
[]
before_script
:
[]
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