summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-05-02 16:12:11 +0200
committerRémy Coutable <remy@rymai.me>2017-05-02 16:12:11 +0200
commitccbf9d89b8c1b526789169bd661652774420e90a (patch)
treee5c9f83829d0ded690c65933a5dd527e6d8b85d6 /.gitlab-ci.yml
parent43997f2f99f853ce1acc8d662f6d57a69bbef55b (diff)
downloadgitlab-ce-ccbf9d89b8c1b526789169bd661652774420e90a.tar.gz
DRY the `<<: *except-docs` a bit in `.gitlab-ci.yml`docs-mrs-should-run-static-analysis
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml39
1 files changed, 18 insertions, 21 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 63e7001283d..ccbc86529d6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -268,6 +268,21 @@ static-analysis:
script:
- 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:
<<: *rake-exec
except:
@@ -299,22 +314,22 @@ ee_compat_check:
.db-migrate-reset: &db-migrate-reset
stage: test
<<: *dedicated-runner
+ <<: *except-docs
script:
- bundle exec rake db:migrate:reset
db:migrate:reset pg:
<<: *db-migrate-reset
<<: *use-pg
- <<: *except-docs
db:migrate:reset mysql:
<<: *db-migrate-reset
<<: *use-mysql
- <<: *except-docs
.db-rollback: &db-rollback
stage: test
<<: *dedicated-runner
+ <<: *except-docs
script:
- bundle exec rake db:rollback STEP=120
- bundle exec rake db:migrate
@@ -322,16 +337,15 @@ db:migrate:reset mysql:
db:rollback pg:
<<: *db-rollback
<<: *use-pg
- <<: *except-docs
db:rollback mysql:
<<: *db-rollback
<<: *use-mysql
- <<: *except-docs
.db-seed_fu: &db-seed_fu
stage: test
<<: *dedicated-runner
+ <<: *except-docs
variables:
SIZE: "1"
SETUP_DB: "false"
@@ -349,12 +363,10 @@ db:rollback mysql:
db:seed_fu pg:
<<: *db-seed_fu
<<: *use-pg
- <<: *except-docs
db:seed_fu mysql:
<<: *db-seed_fu
<<: *use-mysql
- <<: *except-docs
gitlab:assets:compile:
stage: test
@@ -395,21 +407,6 @@ karma:
paths:
- 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:
stage: test
<<: *ruby-static-analysis