Travis: fix OS X build
authorNicolas Williams <nico@twosigma.com>
Sun, 28 May 2017 20:53:58 +0000 (15:53 -0500)
committerNicolas Williams <nico@twosigma.com>
Sun, 28 May 2017 21:58:39 +0000 (16:58 -0500)
.travis.yml

index f9940b99d639ed2a27122b506159e4a67c058ccc..3bb187bb952ff08dd0bdc133650072c0b7a6246d 100644 (file)
@@ -12,7 +12,7 @@ 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
@@ -21,7 +21,23 @@ before_install:
 install:
     - cd ci-build
     - if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi
-    - ../configure --enable-maintainer-mode $COVERAGE
+    - |
+      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 $COVERAGE
+      fi
     - make -j3
 
 script: