From f3e6445b6735e2f9172a949556268094178ceae3 Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Tue, 21 Apr 2020 12:00:13 +0200 Subject: [PATCH] add codecov.yaml and update coverage flags (#26) --- codecov.yaml | 5 +++++ test/CMakeLists.txt | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 codecov.yaml diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 0000000..dae89fd --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,5 @@ +ignore: + - "test" + +comment: + require_changes: true \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1b0a5e5..ff0ba2a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -65,6 +65,6 @@ doctest_discover_tests(GreeterTests) # ---- code coverage ---- if (ENABLE_TEST_COVERAGE) - target_compile_options(Greeter PRIVATE -O0 -g -fprofile-arcs -ftest-coverage --coverage) - target_link_options(Greeter PUBLIC "--coverage") + target_compile_options(Greeter PUBLIC -O0 -g -fprofile-arcs -ftest-coverage) + target_link_options(Greeter PUBLIC -fprofile-arcs -ftest-coverage) endif()