From e1bc946a6ad0980f0b9048614146afc831224298 Mon Sep 17 00:00:00 2001
From: Rahix <rahix@rahix.de>
Date: Mon, 8 Jul 2019 01:21:33 +0200
Subject: [PATCH] feat(ci): Build documentation

Signed-off-by: Rahix <rahix@rahix.de>
---
 .gitlab-ci.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index befcff67..321cdc92 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,3 +11,23 @@ build:
     script:
         - ./bootstrap.sh
         - ninja -C build/
+
+pages:
+    stage: deploy
+    image: ubuntu:bionic
+    before_script:
+        - apt update -qq
+        - apt install -y -qq python3-pip git clang libclang-dev llvm
+        - pip3 install sphinx sphinx_rtd_theme clang
+        - git clone https://github.com/jnikula/hawkmoth.git
+        - (cd hawkmoth; python3 setup.py install)
+    script:
+        - export LD_LIBRARY_PATH=$(llvm-config --libdir)
+        - echo $LD_LIBRARY_PATH
+        - sphinx-build -b html Documentation/ Documentation/output/
+        - mv Documentation/output/ public/
+    artifacts:
+        paths:
+            - public/
+    only:
+        - master
-- 
GitLab