
Add the necessary compiler flags to the Makefile to actually make coverage reports available locally, too. The coverage files have to get cleaned every time before the test gets run. Otherwise, it would sum up the coverage over multiple test runs.
40 lines
769 B
YAML
40 lines
769 B
YAML
addons:
|
|
apt:
|
|
packages:
|
|
- doxygen
|
|
- graphviz
|
|
- libdbus-1-dev
|
|
- libx11-dev
|
|
- libxrandr-dev
|
|
- libxinerama-dev
|
|
- libxss-dev
|
|
- libglib2.0-dev
|
|
- libpango1.0-dev
|
|
- libcairo2-dev
|
|
- libnotify-dev
|
|
- libgtk-3-dev
|
|
- valgrind
|
|
dist: trusty
|
|
sudo: false
|
|
language: c
|
|
|
|
git:
|
|
depth: false
|
|
|
|
before_install:
|
|
- pip install --user cpp-coveralls
|
|
|
|
script:
|
|
- CFLAGS="-Werror" make all dunstify test-valgrind doc-doxygen
|
|
- CFLAGS="-Werror" make clean
|
|
- CFLAGS="-Werror" make test-coverage
|
|
|
|
matrix:
|
|
include:
|
|
- compiler: gcc
|
|
after_success:
|
|
- coveralls --exclude 'test'
|
|
- compiler: clang
|
|
after_success:
|
|
- coveralls --exclude 'test' --gcov llvm-cov --gcov-options gcov
|