.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 620696c..7a3eb78 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 4b06808..2cdcd86 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