.gitlab-ci: install doc/sphinx/requirements.txt
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 25 Jan 2021 21:06:25 +0000 (22:06 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 27 Jan 2021 11:52:57 +0000 (12:52 +0100)
Install all requirements according to doc/sphinx/requirements.txt in the
virtual environment used for testing 'make htmldocs'.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
.azure-pipelines.yml
.gitlab-ci.yml

index 620696c22e03948e83c357004930b1f5ef62f8bc..7a3eb78a5ea2a4fc76258e07a0fbee0e578a7610 100644 (file)
@@ -67,7 +67,11 @@ jobs:
       image: $(ci_runner_image)
       options: $(container_option)
     steps:
-      - script: make htmldocs
+      - script: |
+          virtualenv -p /usr/bin/python3 /tmp/venvhtml
+          . /tmp/venvhtml/bin/activate
+          pip install -r doc/sphinx/requirements.txt
+          make htmldocs
 
   - job: todo
     displayName: 'Search for TODO within source tree'
index 4b0680887b5644e0cf550861391ffcab220aad3b..2cdcd864c86a9e777cb4251f005f7f46db705327 100644 (file)
@@ -122,6 +122,9 @@ htmldocs:
   tags: [ 'all' ]
   stage: testsuites
   script:
+    - virtualenv -p /usr/bin/python3 /tmp/venvhtml
+    - . /tmp/venvhtml/bin/activate
+    - pip install -r doc/sphinx/requirements.txt
     - make htmldocs
 
 # some statistics about the code base