From fbf20bdf7ce5854ced0588e420b1c2a48df8ecf9 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 13:43:11 +0200 Subject: CMakeLists.txt: Add coverage report support. Up to now, the -DENABLE_COVERAGE=ON option was a noopt cmdline parameter. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5be74c7..7430e86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,14 @@ if (ENABLE_TESTS) include(CTest) enable_testing() add_subdirectory(tests) + if (ENABLE_COVERAGE) + find_package(CoverageReport) + ENABLE_COVERAGE_REPORT( + TARGETS "ayatana-common" + TESTS "tst_utils" + FILTER /usr/include ${CMAKE_BINARY_DIR}/* + ) + endif() endif() # Display config info -- cgit v1.2.3 From ae23acc29959aff8418df9a79ab35f54d8e807f0 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 16:11:54 +0200 Subject: .travis.yml: Don't try running autotools based CI build. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2efd2f4..5382638 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ install: - ./docker-build --name ${DISTRO} --config .build.yml --install script: - - ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts --build autotools + - ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts env: # temp disable of archlinux builds, see https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/56 -- cgit v1.2.3