From 3569de7cd19fcb29b9476cc4004c13fdbf8c8883 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 2 Dec 2021 15:51:55 +0200 Subject: [PATCH] CI: emit cobertura artifact from only one job I do not know what happens if multiple jobs declare artifacts:reports:cobertura. Maybe the last job to finish wins? Who cares, Gitlab can only show the results from one cobertura report in the MR diff view. Recently, the MR diffs have the coverage annotations, but there was a time when they seemed to be missing. I don't know why. Let's make sure the cobertura report Gitlab will use is from the "main" build only: 64-bit Debian with full features and gcc. I do not move the after_script, because maybe someone could have a reason to look at arch-specific coverage reports, so I want to leave the HTML there in the artifacts. Signed-off-by: Pekka Paalanen --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b615a9a7..880ab606 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -287,14 +287,14 @@ aarch64-debian-container_prep: - ninja -C "$BUILDDIR" coverage-html > "$BUILDDIR/meson-logs/ninja-coverage-html.txt" - ninja -C "$BUILDDIR" coverage-xml - sed -i -e 's/\/build-weston-build-full//' -e 's/\"..\//\"/' "$BUILDDIR/meson-logs/coverage.xml" - artifacts: - reports: - cobertura: $BUILDDIR/meson-logs/coverage.xml x86_64-debian-full-build: extends: - .test-env-debian-x86_64 - .build-options-full + artifacts: + reports: + cobertura: $BUILDDIR/meson-logs/coverage.xml aarch64-debian-full-build: extends: