1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-02-20 12:54:16 +01:00

enable coverage build for travis

This commit is contained in:
Klas Lindfors 2015-01-20 10:48:31 +01:00
parent de0eed5be4
commit 2cfac9e6a2
2 changed files with 17 additions and 1 deletions

View File

@ -11,4 +11,8 @@ before_install:
- sudo add-apt-repository -y ppa:yubico/stable
- sudo apt-get update -qq
- sudo apt-get install -qq -y --no-install-recommends libykclient-dev libpam0g-dev libyubikey-dev asciidoc docbook-xml xsltproc libxml2-utils $EXTRA
script: autoreconf -i && ./configure $CONFIGURE_ARGS && make check
script: tests/aux/build-and-test.sh
matrix:
include:
- compiler: gcc
env: COVERAGE="--enable-coverage" EXTRA="libldap2-dev libykpers-1-dev libnet-ldap-server-perl lcov"

12
tests/aux/build-and-test.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
autoreconf -i
./configure $COVERAGE
make check
if [ "x$COVERAGE" != "x" ]; then
gem install coveralls-lcov
coveralls-lcov --repo-token $COVERALLS_TOKEN coverage/app2.info
fi