.gitlab-ci.yml: Always build the ubuntu1804-samba-o3 with --enable-coverage
authorAndrew Bartlett <abartlet@samba.org>
Mon, 19 Apr 2021 19:45:31 +0000 (07:45 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 28 Apr 2021 03:43:34 +0000 (03:43 +0000)
This ensures that the coverage build always works, as it can trigger different warnings.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
.gitlab-ci-main.yml

index 757c6824b9738cf7fad33b155017d2f88c3e6ce4..b0f81e674bbafdbfd6c00c925515026fca6457a9 100644 (file)
@@ -489,11 +489,18 @@ coverity:
 
 # This job, which matches the main CI, needs to still do coverage so
 # we show the coverage on the "none" environment tests
+#
+# We want --enable-coverage specified here otherwise we will have a
+# different set of build options on the coverage build and can fail
+# when -O3 gets combined with --enable-coverage in the scheduled
+# builds.
+
 ubuntu1804-samba-o3:
   extends: .shared_template
   variables:
     AUTOBUILD_JOB_NAME: samba-o3
     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_ubuntu1804}
+    SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE: "--enable-coverage"
 
 # All other jobs do not want code coverage.
 .samba-o3-template: