run coverage for travis

This commit is contained in:
Klas Lindfors
2015-01-20 10:03:42 +01:00
parent d2e0a3bc79
commit c611913a38
3 changed files with 11 additions and 6 deletions
+2
View File
@@ -17,3 +17,5 @@ matrix:
env: EXTRA="wine mingw-w64 mingw-w64-dev" REMOVE=mingw32 ARCH=32
- compiler: gcc
env: EXTRA="wine mingw-w64 mingw-w64-dev" REMOVE=mingw32 ARCH=64
- compiler: gcc
env: COVERAGE="--enable-coverage" EXTRA="libpcsclite-dev lcov"
+5 -2
View File
@@ -1,7 +1,6 @@
#!/bin/sh
set -e
set -x
autoreconf -i
@@ -13,6 +12,10 @@ if [ "x$ARCH" != "x" ]; then
make -f windows.mk ${ARCH}bit VERSION=$version
else
./configure
./configure $COVERAGE
make check
if [ "x$COVERAGE" != "x" ]; then
gem install coveralls-lcov
coveralls-lcov --repo-token $COVERALLS_TOKEN coverage/app2.info
fi
fi
+4 -4
View File
@@ -120,12 +120,12 @@ else
AC_MSG_ERROR([cannot find PCSC/winscard library/headers])
fi
AC_ARG_ENABLE([gcov],
[AS_HELP_STRING([--enable-gcov],
AC_ARG_ENABLE([coverage],
[AS_HELP_STRING([--enable-coverage],
[use Gcov to test the test suite])],
[],
[enable_gcov=no])
AM_CONDITIONAL([ENABLE_COV],[test '!' "$enable_gcov" = no])
[enable_cov=no])
AM_CONDITIONAL([ENABLE_COV],[test '!' "$enable_cov" = no])
AC_ARG_ENABLE([gcc-warnings],
[AS_HELP_STRING([--enable-gcc-warnings],