diff --git a/.travis.yml b/.travis.yml index ff1e5f4..609e424 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ script: - make criterion_tests - make test after_success: -- make coveralls +- make gcov VERBOSE=1 - bash <(curl -s https://codecov.io/bash) -g 'dependencies/*' after_failure: - cat Testing/Temporary/LastTest.log samples/*.{out,err} ../samples/tests/*.{out,err} diff --git a/CMakeLists.txt b/CMakeLists.txt index fb1f647..450932b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,6 +170,12 @@ install(TARGETS criterion add_custom_target(criterion_tests) +file(GLOB_RECURSE GCNO_FILES "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/*.gcno") + +add_custom_target(gcov + "gcov" "-lcp" ${GCNO_FILES} +) + enable_testing() add_subdirectory(samples) add_subdirectory(test) diff --git a/appveyor.yml b/appveyor.yml index 0db9e50..aff5c8a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -58,7 +58,7 @@ test_script: - ps: try { ctest } catch { type Testing/Temporary/LastTest.log } after_test: - - 'make coveralls_generate' + - 'make gcov' - codecov #after_test: # - 'make coveralls'