Skip to content

Commit

Permalink
Travis: fix OS X build
Browse files Browse the repository at this point in the history
  • Loading branch information
nicowilliams committed May 28, 2017
1 parent 40dde22 commit b265296
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .travis.yml
Expand Up @@ -12,15 +12,31 @@ before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update -qq; fi
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -qq bison comerr-dev flex libcap-ng-dev libdb-dev libedit-dev libjson-perl libldap2-dev libncurses5-dev libperl4-corelibs-perl libsqlite3-dev pkg-config python ss-dev texinfo unzip netbase; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew update; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew install cpanm bison flex berkeley-db openssl; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew install cpanm bison flex berkeley-db lmdb openldap openssl; fi
- if [ $TRAVIS_OS_NAME = osx ]; then sudo cpanm install JSON; fi
- mkdir ci-build
- mkdir coverity-build
- ./autogen.sh

install:
- cd ci-build
- ../configure --enable-maintainer-mode
- |
if [ $TRAVIS_OS_NAME = osx ]; then
LDFLAGS="-L/usr/local/opt/berkeley-db/lib -L/usr/local/opt/lmdb/lib" \
CFLAGS="-I/usr/local/opt/lmdb/include" \
../configure --prefix=/tmp/heimdal \
--enable-static=no \
--enable-pthread-support \
--disable-afs-support \
--disable-ndbm-db \
--with-openldap=/usr/local/opt/openldap \
--with-openssl=/usr/local/opt/openssl/ \
--with-hcrypto-default-backend=ossl \
--with-berkeley-db \
--with-berkeley-db-include=/usr/local/opt/berkeley-db/include
else
../configure --enable-maintainer-mode
fi
- make -j3

script:
Expand Down

0 comments on commit b265296

Please sign in to comment.