ci: Force coverage processing to continue on errors and export HTML report

This commit is contained in:
Gabriel Ferreira
2025-04-04 10:15:10 +02:00
parent 6a46166390
commit 96a6c119a6
2 changed files with 5 additions and 7 deletions

View File

@@ -33,13 +33,15 @@ if(${NS3_COVERAGE})
add_custom_target(
coverage_gcc
COMMAND lcov -o ns3.info -c --directory ${CMAKE_BINARY_DIR} ${zero_counters}
--keep-going --ignore-errors inconsistent
WORKING_DIRECTORY ${CMAKE_OUTPUT_DIRECTORY}/coverage
DEPENDS run_test_py
)
add_custom_target(
coverage_html
COMMAND genhtml ns3.info
COMMAND genhtml --ignore-errors inconsistent --ignore-errors corrupt
ns3.info -o ./html
WORKING_DIRECTORY ${CMAKE_OUTPUT_DIRECTORY}/coverage
DEPENDS coverage_gcc
)

View File

@@ -252,14 +252,10 @@ weekly-build-coverage:
variables:
MODE: debug
EXTRA_OPTIONS: "--enable-gcov --disable-asserts --disable-logs"
TARGET: coverage_cobertura
TARGET: coverage_html
artifacts:
paths:
- build/coverage/cobertura.xml
reports:
coverage_report:
coverage_format: cobertura
path: build/coverage/cobertura.xml
- build/coverage/html
tags:
- nsnam
- linux