From e4ac563ce9c45db5bf1a6f22a9f042e048fcbfcf Mon Sep 17 00:00:00 2001 From: Vissarion Fisikopoulos Date: Thu, 27 Feb 2020 13:55:40 +0200 Subject: [PATCH] Upload Coverage Results --- .circleci/config.yml | 7 +++++-- test/CMakeLists.txt | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a4bdb6fae..1a3952115 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,9 @@ # Copyright (c) 20012-2018 Vissarion Fisikopoulos # Licensed under GNU LGPL.3, see LICENCE file -version: 2 +version: 2.1 +orbs: + codecov: codecov/codecov@1.0.5 jobs: build: docker: # See https://docs.docker.com/get-started/#docker-concepts if you are new to Docker. @@ -11,7 +13,7 @@ jobs: parallelism: 4 steps: - checkout - - run: + - run: sudo apt-get update || true; sudo apt-get install cmake lp-solve; rm -rf build; @@ -20,3 +22,4 @@ jobs: cmake ../test; make; ctest -j8 --verbose; + bash <(curl -s https://codecov.io/bash) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8478bf30e..27e809ea3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -53,7 +53,9 @@ else () add_definitions(${CMAKE_CXX_FLAGS} "-std=c++11") # enable C++11 standard add_definitions(${CMAKE_CXX_FLAGS} "-O3") # optimization of the compiler + add_definitions(${CMAKE_CXX_FLAGS} "-coverage") #add_definitions(${CXX_COVERAGE_COMPILE_FLAGS} "-lgsl") + add_definitions(${CXX_COVERAGE_COMPILE_FLAGS} "-lgcov") add_definitions(${CXX_COVERAGE_COMPILE_FLAGS} "-lm") add_definitions(${CXX_COVERAGE_COMPILE_FLAGS} "-ldl") add_definitions(${CXX_COVERAGE_COMPILE_FLAGS} "-DBOOST_NO_AUTO_PTR")