testing codecov #1

This commit is contained in:
Phuntsok Drak-pa 2018-05-23 16:27:13 +02:00
parent 7c2994cacb
commit 596bf12592

View File

@ -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"