From 4ff5a57238532a96048f2c73f1c744a6b96cc6d2 Mon Sep 17 00:00:00 2001
From: Joseph Weston <joseph.weston08@gmail.com>
Date: Mon, 11 Sep 2017 11:47:16 +0200
Subject: [PATCH] ci: enable PDF documentation builds

---
 .gitlab-ci.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2da4842a..740ccc60 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -63,6 +63,17 @@ build documentation:
       - doc/build/html/
     expire_in: 1 month
 
+build PDF documentation:
+  stage: test
+  script:
+    - pip3 install sympy
+    - make -C doc latex SPHINXOPTS='-n -W'
+    - cd doc/build/latex
+    - make all-pdf
+  artifacts:
+    paths:
+      - doc/build/latex/kwant.pdf
+    expire_in: 1 month
 
 run tests:
   stage: test
-- 
GitLab