.gitlab-ci.yml and autobuild: Publish the current HTML docs with the code coverage
authorAndrew Bartlett <abartlet@samba.org>
Thu, 15 Apr 2021 23:16:17 +0000 (11:16 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 28 Apr 2021 03:43:34 +0000 (03:43 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
.gitlab-ci-main.yml
script/autobuild.py

index cbc812648e8239c81f3d874fb87ccf531701f1f7..f52716629154c638e17c049153c1977189696e52 100644 (file)
@@ -131,6 +131,7 @@ include:
       - "*.stdout"
       - "*.stderr"
       - "*.info"
+      - public
       - system-info.txt
   retry:
     max: 2
index 3b2266c7a69699571ab1592246781186c62d1371..d5aef614a42801831cbde9a859683389e28752a6 100755 (executable)
@@ -114,6 +114,11 @@ if options.enable_coverage:
 else:
     LCOV_CMD = 'echo "lcov skipped since no --enable-coverage specified"'
 
+if options.enable_coverage:
+    PUBLISH_DOCS = "mkdir -p ${LOG_BASE}/public && mv output/htmldocs ${LOG_BASE}/public/htmldocs"
+else:
+    PUBLISH_DOCS = 'echo "HTML documentation publishing skipped since no --enable-coverage specified"'
+
 CLEAN_SOURCE_TREE_CMD = "cd ${TEST_SOURCE_DIR} && script/clean-source-tree.sh"
 
 if args:
@@ -211,6 +216,7 @@ tasks = {
             ("autoconf", "autoconf"),
             ("configure", "./configure"),
             ("make", "make html htmlman"),
+            ("publish-docs", PUBLISH_DOCS),
             ("clean", "make clean"),
         ],
     },