dunst/.travis.yml
Nikos Tsipinakis 533f47f4c6 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.
2018-03-09 18:15:26 +02:00

43 lines
817 B
YAML

addons:
apt:
packages:
- doxygen
- graphviz
- libdbus-1-dev
- libx11-dev
- libxrandr-dev
- libxinerama-dev
- libxss-dev
- libxdg-basedir-dev
- libglib2.0-dev
- libpango1.0-dev
- libcairo2-dev
- libnotify-dev
- libgtk-3-dev
- valgrind
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
matrix:
include:
- compiler: gcc
after_success:
- coveralls
- compiler: clang
after_success:
- coveralls --gcov llvm-cov --gcov-options gcov
notifications:
irc:
channels:
- "chat.freenode.net#dunst"
on_success: change
on_failure: always