run coverage for travis
This commit is contained in:
@@ -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
@@ -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
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user