From bb9282c0dd84f64812dec5e71548a8a1f97d7e7c Mon Sep 17 00:00:00 2001
From: Daniel <daniel@harvey>
Date: Thu, 19 Nov 2020 14:13:35 +0100
Subject: [PATCH] WIP: CD pipeline

---
 .gitlab-ci.yml              | 6 +++++-
 unittests/docker/Dockerfile | 6 ++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ec2d0ac0..660c7279 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -93,11 +93,15 @@ build-testenv:
 # documentation:
 #   stage: deploy
 
-# Special job for serving the result
+# Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages
 pages:
   stage: deploy
+  only:
+    - f-doc
   script:
     - echo "Deploying"
+    - make doc
+    - cp -r build/doc/html public
   artifacts:
     paths:
       - public
diff --git a/unittests/docker/Dockerfile b/unittests/docker/Dockerfile
index da45618f..7d212983 100644
--- a/unittests/docker/Dockerfile
+++ b/unittests/docker/Dockerfile
@@ -1,7 +1,9 @@
 FROM debian:latest
 RUN apt-get update && \
-	apt-get install pylint3 python3-pip tox git \
-	curl pycodestyle  -y
+    apt-get install -y \
+      pylint3 python3-pip tox git \
+      curl pycodestyle \
+      python3-sphinx
 ARG COMMIT="dev"
 RUN git clone -b dev https://gitlab.com/caosdb/caosdb-pylib.git && \
     cd caosdb-pylib && git checkout $COMMIT && pip3 install .
-- 
GitLab