Commit 63cff5ea authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

travis: simplify coverage reports

Use codecov to procudes coverage reports
parent d193c9a8
......@@ -12,7 +12,9 @@ branches:
addons:
apt:
packages: &common_packages
- lcov
- cmake
- make
- gdb
env:
......@@ -91,9 +93,6 @@ jobs:
osx_image: xcode11.2
env: CXX_COMPILER=clang++ CXXSTD=c++17
before_install:
- pip install --user cpp-coveralls
install:
- cd ..
- cd baryonyx
......@@ -108,17 +107,12 @@ script:
- ctest -E testoptimizer
after_success:
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then
coveralls
--root ../
--build-root ./
--exclude-pattern '../build/'
--exclude-pattern '../external/'
--exclude-pattern '../rbaryonyx/'
--gcov /usr/bin/gcov
--gcov-options '\--long-file-names --preserve-paths'
--verbose;
fi
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then cd ${TRAVIS_BUILD_DIR} ; fi
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then lcov --directory . --capture --output-file coverage.info ; fi
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then lcov --remove coverage.info '/usr/*' --output-file coverage.info ; fi
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then lcov --remove coverage.info 'external/*' --output-file coverage.info ; fi
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then lcov --list coverage.info ; fi
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then bash <(curl -s https://codecov.io/bash) ; fi
notifications:
email:
......
......@@ -9,7 +9,7 @@ linear programming solver based on the http://www.cse.chalmers.se/~dag/[Dag Wede
[width="15%"]
|============
| https://travis-ci.org/quesnel/baryonyx[image:https://travis-ci.org/quesnel/baryonyx.png?branch=master[Build Status]] | https://ci.appveyor.com/project/quesnel/baryonyx?branch=master[image:https://ci.appveyor.com/api/projects/status/github/quesnel/baryonyx?branch=master&svg=true[Build Status]] | https://coveralls.io/github/quesnel/baryonyx?branch=master[image:https://coveralls.io/repos/github/quesnel/baryonyx/badge.svg?branch=master[Coverage Status]]
| https://travis-ci.org/quesnel/baryonyx[image:https://travis-ci.org/quesnel/baryonyx.png?branch=master[Build Status]] | https://ci.appveyor.com/project/quesnel/baryonyx?branch=master[image:https://ci.appveyor.com/api/projects/status/github/quesnel/baryonyx?branch=master&svg=true[Build Status]] | https://codecov.io/gh/quesnel/baryonyx[image:https://codecov.io/gh/quesnel/baryonyx/branch/master/graph/badge.svg[Coverage Status]]
|============
Copyright © 2017-2020 http://www.inrae.fr/en[INRA]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment