mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:03:35 +08:00
Switching coverage upload mechanism.
This commit is contained in:
+3
-2
@@ -23,13 +23,14 @@ foreach(test_name ${tests})
|
||||
add_dependencies(test_build ${test_name})
|
||||
endforeach()
|
||||
|
||||
if (COVERAGE)
|
||||
if (${CMAKE_BUILD_TYPE} STREQUAL "Profile")
|
||||
add_custom_target(coverage
|
||||
COMMAND ${CMAKE_CTEST_COMMAND}
|
||||
COMMAND lcov --capture --directory . --output-file coverage.info
|
||||
COMMAND genhtml coverage.info --output-directory out
|
||||
COMMAND x-www-browser out/index.html
|
||||
WORKING_DIRECTORY ${CMAKE_BUILD_DIR}
|
||||
DEPENDS coveralls test_build
|
||||
DEPENDS test_build
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user