Skip to contentSkip to conversation

CI: add documentation job

PATCH Applied Ross Burton 2 participants 2 messages Oct 24, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CI: add documentation job

This job builds all of the Sphinx documentation it can find with fatal warnings enabled.

---
 .gitlab-ci.yml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
.gitlab-ci.yml +15 -0
index 98a95c13..7d050a55 100644
@@ -242,3 +242,18 @@ metrics:
   script:
     - kas shell --update --force-checkout ci/base.yml --command \
       "$CI_PROJECT_DIR/ci/patchreview $CI_PROJECT_DIR/meta-* --verbose --metrics $CI_PROJECT_DIR/metrics.txt"
+
+documentation:
+  extends: .setup
+  script:
+    - |
+      sudo pip3 install -r meta-arm-bsp/documentation/requirements.txt
+      for CONF in meta-*/documentation/*/conf.py ; do
+        SOURCE_DIR=$(dirname $CONF)
+        MACHINE=$(basename $SOURCE_DIR)
+        sphinx-build -vW $SOURCE_DIR build-docs/$MACHINE
+      done
+      test -d build-docs/
+  artifacts:
+    paths:
+      - build-docs/
Signature · 1 line
2.34.1
Applied
#1 lore raw
Quoted 2 lines · Ross Burton

This job builds all of the Sphinx documentation it can find with fatal warnings enabled.

Applied, thanks!

[1/1] CI: add documentation job

      commit: 72f0580f70e771432c83418e644d92e46dd33a58

Best regards,

Signature · 1 line
Jon Mason <[email protected]>