From 596bf12592616bfe4b88a23abe0e69fba9fb9ba9 Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Wed, 23 May 2018 16:27:13 +0200 Subject: [PATCH] testing codecov #1 --- .travis.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c4b8024..d712394 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ addons: packages: - g++-7 - clang-5.0 + - lcov matrix: include: @@ -47,7 +48,8 @@ matrix: before_install: brew update install: - brew upgrade cmake + - brew upgrade cmake + - brew install lcov - os: osx osx_image: xcode9.3 env: @@ -56,8 +58,16 @@ matrix: before_install: brew update install: - brew upgrade cmake + - brew install lcov + - brew upgrade cmake script: - cd build - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. - make -j + +after_success: + - cd ${TRAVIS_BUILD_DIR} + - lcov --directory . --capture --output-file coverage.info # capture coverage info + - lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter out system + - lcov --list coverage.info + - bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"