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
16
.travis.yml
16
.travis.yml
@ -18,14 +18,22 @@ addons:
|
||||
dist: trusty
|
||||
sudo: false
|
||||
language: c
|
||||
|
||||
before_install:
|
||||
- pip install --user cpp-coveralls
|
||||
|
||||
script:
|
||||
- CFLAGS="-fprofile-arcs -ftest-coverage -Werror" make all dunstify test-valgrind doc-doxygen
|
||||
- coveralls
|
||||
compiler:
|
||||
- gcc
|
||||
- clang
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- compiler: gcc
|
||||
after_success:
|
||||
- coveralls
|
||||
- compiler: clang
|
||||
after_success:
|
||||
- coveralls --gcov llvm-cov --gcov-options gcov
|
||||
|
||||
notifications:
|
||||
irc:
|
||||
channels:
|
||||
|
Loading…
x
Reference in New Issue
Block a user