Skip to content

Commit

Permalink
Upload Coverage Results
Browse files Browse the repository at this point in the history
  • Loading branch information
vissarion committed Feb 27, 2020
1 parent ca784f5 commit e4ac563
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
jobs:
build:
docker: # See https://docs.docker.com/get-started/#docker-concepts if you are new to Docker.
Expand All @@ -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;
Expand All @@ -20,3 +22,4 @@ jobs:
cmake ../test;
make;
ctest -j8 --verbose;
bash <(curl -s https://codecov.io/bash)
2 changes: 2 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e4ac563

Please sign in to comment.