From 4c3fd2d2ada8f5e83090368c1573dc734288af8f Mon Sep 17 00:00:00 2001 From: Danny Edel Date: Mon, 4 Apr 2016 18:59:26 +0200 Subject: [PATCH] travis: fix codecov integration This contains the following improvements: * OSX: Give the correct path to the user library * Linux/Clang: Use llvm-cov instead of gcov * Linux/GCC: Call ~/.local/bin/codecov directly --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d870f123..c471b120 100644 --- a/.travis.yml +++ b/.travis.yml @@ -73,4 +73,11 @@ install: script: _travis/test after_success: - pip install --user codecov - - PATH="$HOME/.local/bin:$PATH" codecov + - > + if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then + ~/Library/Python/*/bin/codecov ; + elif [[ "$CXX" == "clang++" ]] ; then + ~/.local/bin/codecov --gcov-exec llvm-cov ; + else + ~/.local/bin/codecov ; + fi