Fix coveralls crashing when building with clang
Coveralls defaulted to using gcov for all builds even when using clang in which case it should have used llvm-cov. Fix this by specifying different coveralls commands for each compiler. Additionally, move the coverage to commands to the after_success section to avoid sending coverage data when the build failed.
This commit is contained in:
parent
aa5ccd7dd7
commit
533f47f4c6
14
.travis.yml
14
.travis.yml
@ -18,14 +18,22 @@ addons:
|
|||||||
dist: trusty
|
dist: trusty
|
||||||
sudo: false
|
sudo: false
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- pip install --user cpp-coveralls
|
- pip install --user cpp-coveralls
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- CFLAGS="-fprofile-arcs -ftest-coverage -Werror" make all dunstify test-valgrind doc-doxygen
|
- CFLAGS="-fprofile-arcs -ftest-coverage -Werror" make all dunstify test-valgrind doc-doxygen
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- compiler: gcc
|
||||||
|
after_success:
|
||||||
- coveralls
|
- coveralls
|
||||||
compiler:
|
- compiler: clang
|
||||||
- gcc
|
after_success:
|
||||||
- clang
|
- coveralls --gcov llvm-cov --gcov-options gcov
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user