testing codecov #1

This commit is contained in:
Phuntsok Drak-pa 2018-05-23 16:27:13 +02:00
parent 7c2994cacb
commit 596bf12592
1 changed files with 12 additions and 2 deletions

View File

@ -11,6 +11,7 @@ addons:
packages: packages:
- g++-7 - g++-7
- clang-5.0 - clang-5.0
- lcov
matrix: matrix:
include: include:
@ -47,7 +48,8 @@ matrix:
before_install: before_install:
brew update brew update
install: install:
brew upgrade cmake - brew upgrade cmake
- brew install lcov
- os: osx - os: osx
osx_image: xcode9.3 osx_image: xcode9.3
env: env:
@ -56,8 +58,16 @@ matrix:
before_install: before_install:
brew update brew update
install: install:
brew upgrade cmake - brew install lcov
- brew upgrade cmake
script: script:
- cd build - cd build
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- make -j - 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"