summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2023-05-02 05:04:11 +0200
committerHeinrich Schuchardt <[email protected]>2023-05-04 11:15:12 +0200
commit8a6414d1e410ab65780a4c5eb99e79e5b9bc21c1 (patch)
tree9150b72a6400a69fabcaad33ec2f63897e7ea8d2
parent27a03f03b214dbb988c5b40ce49743442544578a (diff)
CI: treat documentation warnings as errors
We do not want to merge documentation that produces Sphinx warnings. scripts/kernel-doc uses environment variable KDOC_WERROR to determine if warnings should be treated as errors. Reported-by: Tom Rini <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]>
-rw-r--r--.azure-pipelines.yml2
-rw-r--r--.gitlab-ci.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index 76ffdeebd66..3c1846a5bc3 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -89,7 +89,7 @@ stages:
virtualenv -p /usr/bin/python3 /tmp/venvhtml
. /tmp/venvhtml/bin/activate
pip install -r doc/sphinx/requirements.txt
- make htmldocs
+ make htmldocs KDOC_WERROR=1
make infodocs
- job: todo
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b193fee98f8..e6c6ab3586e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -171,7 +171,7 @@ docs:
- virtualenv -p /usr/bin/python3 /tmp/venvhtml
- . /tmp/venvhtml/bin/activate
- pip install -r doc/sphinx/requirements.txt
- - make htmldocs
+ - make htmldocs KDOC_WERROR=1
- make infodocs
# some statistics about the code base