You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2020/05/17 09:59:57 UTC

[celix] 01/01: Initial setup of to use codecov.io for coverage reports.

This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/codecov_ci
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 4bc0901e1ce594bd6cf12031499efb384dfeca03
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Sun May 17 11:59:34 2020 +0200

    Initial setup of to use codecov.io for coverage reports.
---
 .github/workflows/coverage.yml                 | 6 ++++++
 misc/experimental/promise/gtest/CMakeLists.txt | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 5f6445c..79e6df4 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -40,6 +40,12 @@ jobs:
           export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH:$(pwd)/utils:$(pwd)/framework:$(pwd)/dfi
           make coverage
           lcx="lcov --output-file=coverage.info " && for i in `find . -name "*.info.cleaned"`; do lcx+=" --add-tracefile=$i"; done && $lcx
+      - name: Codecov
+        uses: codecov/codecov-action@v1
+        with:
+          file: ./coverage.info
+          name: codecov-celix
+
 #      NOTE For now disabled, need to be able to configure coveralls thresholds
 #      See https://github.com/lemurheavy/coveralls-public/issues/1431
 #      - name: Coveralls
diff --git a/misc/experimental/promise/gtest/CMakeLists.txt b/misc/experimental/promise/gtest/CMakeLists.txt
index 14e14ea..d7de9ea 100644
--- a/misc/experimental/promise/gtest/CMakeLists.txt
+++ b/misc/experimental/promise/gtest/CMakeLists.txt
@@ -21,5 +21,5 @@ add_executable(test_promise
 target_link_libraries(test_promise PRIVATE GTest::gtest GTest::gtest_main Celix::Promise)
 
 add_test(NAME test_promise COMMAND test_promise)
-SETUP_TARGET_FOR_COVERAGE(test_promise_cov test_promise ${CMAKE_BINARY_DIR}/coverage/promise ..)
+setup_target_for_coverage(test_promise SCAN_DIR ..)