From 2df821abf1fb21a48ed44e836b3f8d444621b4df Mon Sep 17 00:00:00 2001
From: Christian Krause <christian.krause@idiv.de>
Date: Wed, 5 Jun 2019 14:22:30 +0200
Subject: [PATCH] adds distinct build stage to ci

also makes pandoc fail if there are any warnings, e.g. if images are
missing
---
 .gitlab-ci.yml | 8 ++++++++
 Makefile       | 1 +
 2 files changed, 9 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8c5fb9c..b448cf4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - check
+  - build
   - deploy
 
 variables:
@@ -12,6 +13,13 @@ check:
   tags:
     - pandoc
 
+build:
+  stage: build
+  script:
+    - make
+  tags:
+    - pandoc
+
 deploy:
   stage: deploy
   script:
diff --git a/Makefile b/Makefile
index 59a5cb7..aeb9510 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ TITLE = title
 PANDOC = pandoc
 
 PANDOCFLAGS = \
+	--fail-if-warnings \
 	--standalone \
 	--filter pandoc-citeproc \
 	--pdf-engine=xelatex \
-- 
GitLab