]> danny-edel.de - dspdfviewer.git/commitdiff
travis: fix codecov integration
authorDanny Edel <mail@danny-edel.de>
Mon, 4 Apr 2016 16:59:26 +0000 (18:59 +0200)
committerDanny Edel <mail@danny-edel.de>
Mon, 4 Apr 2016 16:59:26 +0000 (18:59 +0200)
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

index d870f12302c0c42fb2c9cb0561207f523fe247bf..c471b12011d5bca6c21fead3fdddc7a45b92e12f 100644 (file)
@@ -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