From 533f47f4c6e7269b4d2be7bfa74df0866bd32817 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Fri, 9 Mar 2018 18:12:08 +0200 Subject: [PATCH] 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. --- .travis.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0db5b8e..722d2d8 100644 --- a/.travis.yml +++ b/.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: