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

View File

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