mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
Merge branch 'coverage-exclusions' into 'main'
ci: Exclude copylibs and fuzz tests from code coverage See merge request GNOME/glib!3064
This commit is contained in:
commit
240c99d5a4
@ -10,6 +10,12 @@ for path in _coverage/*.lcov; do
|
|||||||
lcov --config-file .lcovrc -r "${path}" '*/_build/*' -o "$(pwd)/${path}"
|
lcov --config-file .lcovrc -r "${path}" '*/_build/*' -o "$(pwd)/${path}"
|
||||||
# Remove any coverage from system files
|
# Remove any coverage from system files
|
||||||
lcov --config-file .lcovrc -e "${path}" "$(pwd)/*" -o "$(pwd)/${path}"
|
lcov --config-file .lcovrc -e "${path}" "$(pwd)/*" -o "$(pwd)/${path}"
|
||||||
|
# Remove coverage from the fuzz tests, since they are run on a separate CI system
|
||||||
|
lcov --config-file .lcovrc -r "${path}" "*/fuzzing/*" -o "$(pwd)/${path}"
|
||||||
|
# Remove coverage from copylibs and subprojects
|
||||||
|
for lib in xdgmime libcharset gnulib; do
|
||||||
|
lcov --config-file .lcovrc -r "${path}" "*/${lib}/*" -o "$(pwd)/${path}"
|
||||||
|
done
|
||||||
|
|
||||||
# Convert to cobertura format for gitlab integration
|
# Convert to cobertura format for gitlab integration
|
||||||
cobertura_base="${path/.lcov}-cobertura"
|
cobertura_base="${path/.lcov}-cobertura"
|
||||||
|
Loading…
Reference in New Issue
Block a user