try travis for osx

This commit is contained in:
Klas Lindfors
2015-10-07 14:40:55 +02:00
parent f2da95e599
commit 4ecd34c8e3
3 changed files with 28 additions and 9 deletions
+21 -3
View File
@@ -4,13 +4,31 @@ set -e
autoreconf -i
if [ "x$TRAVIS_OS_NAME" != "xosx" ]; then
sudo apt-get update -qq
sudo apt-get remove -qq -y $REMOVE
sudo apt-get autoremove -qq
sudo apt-get install -qq -y gengetopt help2man $EXTRA
TAR=tar
else
ARCH=osx
brew update
brew install help2man
brew install pkg-config
brew install gengetopt
brew install gnu-tar
TAR=gtar
fi
if [ "x$ARCH" != "x" ]; then
version=`cat NEWS | grep unreleased | cut -d' ' -f3`
set +e
tar --exclude .git --transform="s/^\./yubico-piv-tool-${version}/" -czf yubico-piv-tool-${version}.tar.gz .
$TAR --exclude .git --transform="s/^\./yubico-piv-tool-${version}/" -czf yubico-piv-tool-${version}.tar.gz .
set -e
make -f windows.mk ${ARCH}bit VERSION=$version
if [ "x$ARCH" != "xosx" ]; then
make -f windows.mk ${ARCH}bit VERSION=$version
else
make -f mac.mk mac VERSION=$version
fi
else
./configure $COVERAGE
make check