[at-spi2-core: 6/7] Create the HTML coverage report in its final place, not a temporary one




commit bb0e6ab309b69c8a2e5b8ad266fef75c1a5c2fd0
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Jun 6 10:59:51 2022 -0500

    Create the HTML coverage report in its final place, not a temporary one

 .gitlab-ci.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 72ea65ad..97aea2fb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -148,10 +148,9 @@ coverage:
     - meson compile -C _build
     - meson install -C _build
     - dbus-run-session -- ci/run-tests.sh
+    - mkdir -p public
     - grcov _build --source-dir ./ --prefix-dir ../ --output-type cobertura --branch --ignore-not-existing 
-o coverage.xml
-    - grcov _build --source-dir ./ --prefix-dir ../ --output-type html --branch --ignore-not-existing -o 
_coverage
-    - mkdir -p public/
-    - cp -r _coverage public/coverage
+    - grcov _build --source-dir ./ --prefix-dir ../ --output-type html --branch --ignore-not-existing -o 
public/coverage
     # In the following line, the first grep finds what it is supposed to find, but exits with a nonzero code.
     # I have no idea why.  So, force the whole pipeline to return true.
     - (grep -Eo 'line-rate="[^"]+"' coverage.xml | head -n 1 | grep -Eo '[0-9.]+' | awk '{ print 
"Coverage:", $1 * 100 }') || true


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]