summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2017-03-30 09:34:43 +0000
committerRémy Coutable <remy@rymai.me>2017-03-30 09:34:43 +0000
commit0b1c7eead2da24923be945a953e4d38ac354e3b5 (patch)
treec343df807001c7767e52c2a0d955b19f7c12303c /.gitlab-ci.yml
parent68aa43fdbde279b2d990e4108da03c4e6bd8034d (diff)
downloadgitlab-ce-0b1c7eead2da24923be945a953e4d38ac354e3b5.tar.gz
Test docs internal links check
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml25
1 files changed, 23 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ff4da3a8884..476307e7076 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -292,14 +292,35 @@ rake karma:
paths:
- coverage-javascript/
-lint-doc:
+docs:check:apilint:
+ image: "phusion/baseimage"
stage: test
<<: *dedicated-runner
- image: "phusion/baseimage:latest"
+ variables:
+ GIT_DEPTH: "3"
+ cache: {}
+ dependencies: []
before_script: []
script:
- scripts/lint-doc.sh
+docs:check:links:
+ image: "registry.gitlab.com/gitlab-org/gitlab-build-images:nanoc-bootstrap-ruby-2.4-alpine"
+ stage: test
+ <<: *dedicated-runner
+ variables:
+ GIT_DEPTH: "3"
+ 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:check:
stage: test
<<: *dedicated-runner