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
ccbf9d89
Commit
ccbf9d89
authored
May 02, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DRY the `<<: *except-docs` a bit in `.gitlab-ci.yml`
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
43997f2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
21 deletions
+18
-21
.gitlab-ci.yml
.gitlab-ci.yml
+18
-21
No files found.
.gitlab-ci.yml
View file @
ccbf9d89
...
@@ -268,6 +268,21 @@ static-analysis:
...
@@ -268,6 +268,21 @@ static-analysis:
script
:
script
:
-
scripts/static-analysis
-
scripts/static-analysis
docs:check:links:
image
:
"
registry.gitlab.com/gitlab-org/gitlab-build-images:nanoc-bootstrap-ruby-2.4-alpine"
stage
:
test
<<
:
*dedicated-runner
cache
:
{}
dependencies
:
[]
before_script
:
[]
script
:
-
mv doc/ /nanoc/content/
-
cd /nanoc
# Build HTML from Markdown
-
bundle exec nanoc
# Check the internal links
-
bundle exec nanoc check internal_links
downtime_check
:
downtime_check
:
<<
:
*rake-exec
<<
:
*rake-exec
except
:
except
:
...
@@ -299,22 +314,22 @@ ee_compat_check:
...
@@ -299,22 +314,22 @@ ee_compat_check:
.db-migrate-reset
:
&db-migrate-reset
.db-migrate-reset
:
&db-migrate-reset
stage
:
test
stage
:
test
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
script
:
script
:
-
bundle exec rake db:migrate:reset
-
bundle exec rake db:migrate:reset
db:migrate:reset pg
:
db:migrate:reset pg
:
<<
:
*db-migrate-reset
<<
:
*db-migrate-reset
<<
:
*use-pg
<<
:
*use-pg
<<
:
*except-docs
db:migrate:reset mysql
:
db:migrate:reset mysql
:
<<
:
*db-migrate-reset
<<
:
*db-migrate-reset
<<
:
*use-mysql
<<
:
*use-mysql
<<
:
*except-docs
.db-rollback
:
&db-rollback
.db-rollback
:
&db-rollback
stage
:
test
stage
:
test
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
script
:
script
:
-
bundle exec rake db:rollback STEP=120
-
bundle exec rake db:rollback STEP=120
-
bundle exec rake db:migrate
-
bundle exec rake db:migrate
...
@@ -322,16 +337,15 @@ db:migrate:reset mysql:
...
@@ -322,16 +337,15 @@ db:migrate:reset mysql:
db:rollback pg
:
db:rollback pg
:
<<
:
*db-rollback
<<
:
*db-rollback
<<
:
*use-pg
<<
:
*use-pg
<<
:
*except-docs
db:rollback mysql
:
db:rollback mysql
:
<<
:
*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
<<
:
*dedicated-runner
<<
:
*dedicated-runner
<<
:
*except-docs
variables
:
variables
:
SIZE
:
"
1"
SIZE
:
"
1"
SETUP_DB
:
"
false"
SETUP_DB
:
"
false"
...
@@ -349,12 +363,10 @@ db:rollback mysql:
...
@@ -349,12 +363,10 @@ db:rollback mysql:
db:seed_fu pg
:
db:seed_fu pg
:
<<
:
*db-seed_fu
<<
:
*db-seed_fu
<<
:
*use-pg
<<
:
*use-pg
<<
:
*except-docs
db:seed_fu mysql
:
db:seed_fu mysql
:
<<
:
*db-seed_fu
<<
:
*db-seed_fu
<<
:
*use-mysql
<<
:
*use-mysql
<<
:
*except-docs
gitlab:assets:compile:
gitlab:assets:compile:
stage
:
test
stage
:
test
...
@@ -395,21 +407,6 @@ karma:
...
@@ -395,21 +407,6 @@ karma:
paths
:
paths
:
-
coverage-javascript/
-
coverage-javascript/
docs:check:links:
image
:
"
registry.gitlab.com/gitlab-org/gitlab-build-images:nanoc-bootstrap-ruby-2.4-alpine"
stage
:
test
<<
:
*dedicated-runner
cache
:
{}
dependencies
:
[]
before_script
:
[]
script
:
-
mv doc/ /nanoc/content/
-
cd /nanoc
# Build HTML from Markdown
-
bundle exec nanoc
# Check the internal links
-
bundle exec nanoc check internal_links
bundler:audit:
bundler:audit:
stage
:
test
stage
:
test
<<
:
*ruby-static-analysis
<<
:
*ruby-static-analysis
...
...
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