1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-03-15 18:29:16 +01:00
yubico-pam/tests/aux/build-and-test.sh

40 lines
1.0 KiB
Bash
Raw Normal View History

2015-01-20 10:48:31 +01:00
#!/bin/sh
2015-01-20 10:53:47 +01:00
set -x
2015-01-20 10:48:31 +01:00
autoreconf -i
2015-10-08 09:12:31 +02:00
if [ "x$TRAVIS_OS_NAME" != "xosx" ]; then
sudo add-apt-repository -y ppa:yubico/stable
sudo apt-get update -qq || true
sudo apt-get install -qq -y --no-install-recommends libykclient-dev libpam0g-dev libyubikey-dev asciidoc docbook-xsl xsltproc libxml2-utils $EXTRA
2015-10-08 09:12:31 +02:00
else
2015-11-13 10:53:24 +01:00
brew update
2015-10-08 09:12:31 +02:00
brew install pkg-config
brew install libtool
brew install asciidoc
brew install docbook-xsl
2015-10-08 09:12:31 +02:00
brew install libyubikey
brew install ykclient
brew install ykpers
brew install mysql-connector-c #Mysql
2015-10-08 09:12:31 +02:00
cpanp install Net::LDAP::Server
# this is required so asciidoc can find the xml catalog
export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
2015-10-08 09:12:31 +02:00
fi
set -e
2021-04-06 13:48:42 +02:00
if [ ! -z $MYSQL_PORT ]; then
CFLAGS="-DTEST_MYSQL_PORT='\"${MYSQL_PORT}\"'" ./configure $CONFIGURE_ARGS $COVERAGE
else
./configure $CONFIGURE_ARGS $COVERAGE
fi
make check check-doc-dist
2015-01-20 10:48:31 +01:00
if [ "x$COVERAGE" != "x" ]; then
gem install coveralls-lcov
2015-03-10 08:01:03 +01:00
coveralls-lcov coverage/app2.info
2015-01-20 10:48:31 +01:00
fi