diff mbox series

[v2,3/4] .gitlab-ci: install doc/sphinx/requirements.txt

Message ID 20210126183556.3881-4-xypron.glpk@gmx.de
State Accepted, archived
Commit 836049d63eedd3b1f2351831d1439b668cdbeb0e
Delegated to: Heinrich Schuchardt
Headers show
Series doc: update Kernel documentation build system | expand

Commit Message

Heinrich Schuchardt Jan. 26, 2021, 6:35 p.m. UTC
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>
---
v2:
	no change
---
 .azure-pipelines.yml | 6 +++++-
 .gitlab-ci.yml       | 3 +++
 2 files changed, 8 insertions(+), 1 deletion(-)

--
2.29.2

Comments

Simon Glass Feb. 1, 2021, 8:43 p.m. UTC | #1
On Tue, 26 Jan 2021 at 11:36, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> 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>
> ---
> v2:
>         no change
> ---
>  .azure-pipelines.yml | 6 +++++-
>  .gitlab-ci.yml       | 3 +++
>  2 files changed, 8 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index 620696c22e..7a3eb78a5e 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -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'
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4b0680887b..2cdcd864c8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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