mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-21 15:54:41 +01:00
enable coverage build for travis
This commit is contained in:
parent
de0eed5be4
commit
2cfac9e6a2
@ -11,4 +11,8 @@ before_install:
|
|||||||
- sudo add-apt-repository -y ppa:yubico/stable
|
- sudo add-apt-repository -y ppa:yubico/stable
|
||||||
- sudo apt-get update -qq
|
- 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
|
- 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
12
tests/aux/build-and-test.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user