Travis: attempt gcov build
This commit is contained in:
17
.travis.yml
17
.travis.yml
@@ -13,13 +13,28 @@ before_install:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- cd ci-build
|
- cd ci-build
|
||||||
- ../configure --enable-maintainer-mode
|
- if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi
|
||||||
|
- ../configure --enable-maintainer-mode $COVERAGE
|
||||||
- make -j3
|
- make -j3
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [ x${COVERITY_SCAN_BRANCH} != x1 ]; then make check; fi
|
- if [ x${COVERITY_SCAN_BRANCH} != x1 ]; then make check; fi
|
||||||
|
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
after_script:
|
||||||
|
- if [ -n "$COVERAGE" ]; then coveralls --gcov-options; fi
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
# Add a gcov build
|
||||||
|
include:
|
||||||
|
- compiler: gcc
|
||||||
|
env: COVERAGE="--enable-gcov"
|
||||||
|
os: linux
|
||||||
|
# The gcov build is not working quite yet
|
||||||
|
allow_failures:
|
||||||
|
compiler: gcc
|
||||||
|
env: COVERAGE="--enable-gcov"
|
||||||
|
os: linux
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
@@ -64,3 +64,9 @@ EXTRA_DIST = \
|
|||||||
|
|
||||||
print-distdir:
|
print-distdir:
|
||||||
@echo $(distdir)
|
@echo $(distdir)
|
||||||
|
|
||||||
|
clean-local-gcov:
|
||||||
|
find . '(' -name '*.gcno' -o -name '*.gcda' -o -name '*.gcov' ')' -a -print|xargs rm -f
|
||||||
|
|
||||||
|
.PHONY: clean-local-gcov
|
||||||
|
|
||||||
|
@@ -293,3 +293,7 @@ distdir-in-tree: $(DISTFILES) $(INFO_DEPS)
|
|||||||
heim_verbose = $(heim_verbose_$(V))
|
heim_verbose = $(heim_verbose_$(V))
|
||||||
heim_verbose_ = $(heim_verbose_$(AM_DEFAULT_VERBOSITY))
|
heim_verbose_ = $(heim_verbose_$(AM_DEFAULT_VERBOSITY))
|
||||||
heim_verbose_0 = @echo " GEN "$@;
|
heim_verbose_0 = @echo " GEN "$@;
|
||||||
|
|
||||||
|
if ENABLE_GCOV
|
||||||
|
AM_CFLAGS += --coverage --no-inline
|
||||||
|
endif
|
||||||
|
@@ -72,6 +72,12 @@ AC_C___ATTRIBUTE__
|
|||||||
AM_CONDITIONAL(ENABLE_SHARED, test "$enable_shared" = "yes")
|
AM_CONDITIONAL(ENABLE_SHARED, test "$enable_shared" = "yes")
|
||||||
rk_VERSIONSCRIPT
|
rk_VERSIONSCRIPT
|
||||||
|
|
||||||
|
dnl Code coverage
|
||||||
|
AC_ARG_ENABLE([gcov],
|
||||||
|
AC_HELP_STRING([--enable-gcov], [enable gcov code coverage tool]))
|
||||||
|
AM_CONDITIONAL([ENABLE_GCOV], [test "x$enable_gcov" = xyes])
|
||||||
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Helper bits for cross compiling
|
dnl Helper bits for cross compiling
|
||||||
dnl
|
dnl
|
||||||
|
Reference in New Issue
Block a user