ci: Force coverage processing to continue on errors and export HTML report
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user