Merge pull request #499 from dunst-project/coveralls

Coveralls & travis build fixes
This commit is contained in:
Nikos Tsipinakis 2018-03-10 10:41:26 +02:00 committed by GitHub
commit 4c5c124e1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 13 deletions

View File

@ -18,17 +18,20 @@ 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="-Werror" make all dunstify test-valgrind doc-doxygen
- coveralls - make clean
compiler: - CFLAGS="-Werror -fprofile-arcs -ftest-coverage -O0" make test
- gcc
- clang matrix:
notifications: include:
irc: - compiler: gcc
channels: after_success:
- "chat.freenode.net#dunst" - coveralls --exclude 'test'
on_success: change - compiler: clang
on_failure: always after_success:
- coveralls --exclude 'test' --gcov llvm-cov --gcov-options gcov

View File

@ -14,8 +14,8 @@ PKG_CONFIG ?= pkg-config
# flags # flags
CPPFLAGS += -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\" CPPFLAGS += -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\"
CFLAGS += -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${CPPFLAGS} CFLAGS := -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${CPPFLAGS} ${CFLAGS}
LDFLAGS += -lm -L${X11LIB} LDFLAGS := -lm ${LDFLAGS}
CPPFLAGS_DEBUG := -DDEBUG_BUILD CPPFLAGS_DEBUG := -DDEBUG_BUILD
CFLAGS_DEBUG := -O0 CFLAGS_DEBUG := -O0