[librsvg: 3/6] CI: also scan the _build directory for coverage data files




commit 1c12b0d2830de6b99dafe9b6b52625f147a825b4
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Jun 14 16:26:18 2022 -0500

    CI: also scan the _build directory for coverage data files
    
    This gets us coverage for tests/*.c.
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/709>

 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 171d939eb..52ad5bc7f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -288,8 +288,8 @@ coverage:
   after_script:
     - source ./ci/env.sh
     - mkdir -p public
-    - grcov coverage-profiles --binary-path ./_build/target/debug/ --source-dir . --output-type cobertura 
--branch --ignore-not-existing --ignore "build.rs" --ignore '_build/*' --ignore 'cargo_cache/*' -o 
coverage.xml
-    - grcov coverage-profiles --binary-path ./_build/target/debug/ --source-dir . --output-type html 
--branch --ignore-not-existing --ignore "build.rs" --ignore '_build/*' --ignore 'cargo_cache/*' --output-path 
public/coverage
+    - grcov coverage-profiles _build --binary-path ./_build/target/debug/ --source-dir . --prefix-dir ../../ 
--output-type cobertura --branch --ignore-not-existing --ignore "build.rs" --ignore 'cargo_cache/*' -o 
coverage.xml
+    - grcov coverage-profiles _build --binary-path ./_build/target/debug/ --source-dir . --prefix-dir ../../ 
--output-type html --branch --ignore-not-existing --ignore "build.rs" --ignore 'cargo_cache/*' --output-path 
public/coverage
     - grep -Eo 'line-rate="[^"]+"' coverage.xml | head -n 1 | grep -Eo '[0-9.]+' | awk '{ print "Coverage:", 
$1 * 100 }'
   coverage: '/Coverage: \d+\.\d+/'
   artifacts:


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