From: Andrew Bartlett Date: Thu, 15 Apr 2021 23:16:17 +0000 (+1200) Subject: .gitlab-ci.yml and autobuild: Publish the current HTML docs with the code coverage X-Git-Tag: tevent-0.11.0~1017 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5984c3da0f799368f739083a2d9f331e1a4e368;p=thirdparty%2Fsamba.git .gitlab-ci.yml and autobuild: Publish the current HTML docs with the code coverage Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/.gitlab-ci-main.yml b/.gitlab-ci-main.yml index cbc812648e8..f5271662915 100644 --- a/.gitlab-ci-main.yml +++ b/.gitlab-ci-main.yml @@ -131,6 +131,7 @@ include: - "*.stdout" - "*.stderr" - "*.info" + - public - system-info.txt retry: max: 2 diff --git a/script/autobuild.py b/script/autobuild.py index 3b2266c7a69..d5aef614a42 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -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"), ], },