From 8fe1856c309bb9e6dc8ef04fc5ee817a6e11696a Mon Sep 17 00:00:00 2001
From: Xavier L'Heureux <xavier.lheureux@icloud.com>
Date: Mon, 19 Aug 2019 09:08:16 -0400
Subject: [PATCH] ci: Make a link-check before merging

---
 .gitlab-ci.yml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f588f054..5f5d4780 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,17 +45,23 @@ redox:
   script:
     - redoxer test
 
-pages:
+link-check:
+  image: hrektts/mdbook
   before_script:
     - apt-get update -qq
     - apt-get install -qq libssl-dev pkg-config build-essential curl git
     - (test -x $HOME/.cargo/bin/mdbook-linkcheck || cargo install mdbook-linkcheck)
+  script:
+  - make manual
+  - mdbook build manual
+
+pages:
   image: hrektts/mdbook
   stage: deploy
   script:
   - make manual
   - mdbook build manual
-  - mv book/html public
+  - mv manual/book/html public
   artifacts:
     paths:
     - public
-- 
GitLab