install:
- cd ci-build
- - ../configure --enable-maintainer-mode
+ - if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi
+ - ../configure --enable-maintainer-mode $COVERAGE
- make -j3
script:
- if [ x${COVERITY_SCAN_BRANCH} != x1 ]; then make check; fi
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:
email:
print-distdir:
@echo $(distdir)
+
+clean-local-gcov:
+ find . '(' -name '*.gcno' -o -name '*.gcda' -o -name '*.gcov' ')' -a -print|xargs rm -f
+
+.PHONY: clean-local-gcov
+
heim_verbose = $(heim_verbose_$(V))
heim_verbose_ = $(heim_verbose_$(AM_DEFAULT_VERBOSITY))
heim_verbose_0 = @echo " GEN "$@;
+
+if ENABLE_GCOV
+AM_CFLAGS += --coverage --no-inline
+endif
AM_CONDITIONAL(ENABLE_SHARED, test "$enable_shared" = "yes")
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 Helper bits for cross compiling
dnl