From 7420721a6a8e4866fe89c5b930f3142e3f4a95a1 Mon Sep 17 00:00:00 2001
From: lukken <lukken@astron.nl>
Date: Wed, 5 Jan 2022 10:14:29 +0000
Subject: [PATCH] L2SS-557: Add ci job to build sphinx documentation

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 40e33d485..18b0dd91f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ stages:
   - images
   - building
   - linting
+  - documentation
   - static-analysis
   - unit-tests
   - integration-tests
@@ -322,6 +323,17 @@ shellcheck:
   script:
 #     TODO(Corne): Ignore shell files in submodules
     - shellcheck **/*.sh
+sphinx-documentation:
+  stage: documentation
+  before_script:
+    - sudo apt-get update
+    - sudo apt-get install -y git
+  script:
+    - cd tangostationcontrol
+    - tox -e docs
+  artifacts:
+    paths:
+      - tangostationcontrol/docs/build/
 unit_test:
   stage: unit-tests
   before_script:
-- 
GitLab