]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
CI: treat documentation warnings as errors
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 2 May 2023 03:04:11 +0000 (05:04 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 4 May 2023 09:15:12 +0000 (11:15 +0200)
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 <trini@konsulko.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
.azure-pipelines.yml
.gitlab-ci.yml

index 76ffdeebd6670324cb0e105942d6dabccb4d9268..3c1846a5bc3d1cdad52a37d5076186c7f89e7a1e 100644 (file)
@@ -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
index b193fee98f8602a19f6f60000808dfeeaaf7723a..e6c6ab3586e10201b8e643aeb9a7cad740ba8acf 100644 (file)
@@ -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