diff options
author | Marge Bot <marge-bot@gnome.org> | 2022-06-15 18:53:48 +0000 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2022-06-15 18:53:48 +0000 |
commit | af65af182ba454308cbe215c004360ed3e707450 (patch) | |
tree | 449e0b5661c98ef582d28471256fcd3d6e3d57b8 | |
parent | ff01325b88902b7eb0f7c25ac79f72d8c0a224cc (diff) | |
parent | 01793b836f4bd9e69c5bca8ccc42718a1f6dbde7 (diff) | |
download | librsvg-af65af182ba454308cbe215c004360ed3e707450.tar.gz |
Merge branch 'ignore-cargo-cache' into 'main'
coverage: Oops, ignore cargo_cache as well
See merge request GNOME/librsvg!710
-rw-r--r-- | ci/gen-coverage.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ci/gen-coverage.sh b/ci/gen-coverage.sh index 871b2203..0b780b57 100644 --- a/ci/gen-coverage.sh +++ b/ci/gen-coverage.sh @@ -8,6 +8,19 @@ call_grcov() { output_type=$1 output_path=$2 + # Explanation of the options below: + # grcov coverage-profiles _build - paths where to find .rawprof (llvm) and .gcda (gcc) files, respectively + # --binary-path ./_build/target/debug/ - where the Rust test binaries are located + # --source-dir . - toplevel source directory + # --prefix-dir ../../ - prefix to remove from C source files, since they are relative to builddir + # --branch - compute branch coverage if possible + # --ignore build.rs - https://github.com/mozilla/grcov/issues/845 + # --ignore '**/build/markup5ever*' - ignore generated code from dependencies + # --ignore '**/build/cssparser*' - ignore generated code from dependencies + # --ignore 'cargo_cache/*' - ignore code from dependencies + # --output-type $output_type + # --output-path $output_path + grcov coverage-profiles _build \ --binary-path ./_build/target/debug/ \ --source-dir . \ @@ -16,6 +29,7 @@ call_grcov() { --ignore build.rs \ --ignore '**/build/markup5ever*' \ --ignore '**/build/cssparser*' \ + --ignore 'cargo_cache/*' \ --output-type $output_type \ --output-path $output_path } |