Commit 1db5e0276f9641e57744508e5e81356f804a9592

Edward Thomson 2016-07-22T17:45:03

ci: install homebrew's zlib on mac

diff --git a/script/cibuild.sh b/script/cibuild.sh
index 00cde0a..54b4f1b 100755
--- a/script/cibuild.sh
+++ b/script/cibuild.sh
@@ -6,6 +6,10 @@ then
 	exit $?;
 fi
 
+if [ "$TRAVIS_OS_NAME" = "osx" ]; then
+    export PKG_CONFIG_PATH=$(ls -d /usr/local/Cellar/zlib/*/lib/pkgconfig | paste -s -d':' -)
+fi
+
 mkdir _build
 cd _build
 # shellcheck disable=SC2086
diff --git a/script/install-deps-osx.sh b/script/install-deps-osx.sh
index 5510379..da0672d 100755
--- a/script/install-deps-osx.sh
+++ b/script/install-deps-osx.sh
@@ -3,4 +3,5 @@
 set -x
 
 brew update
+brew install homebrew/dupes/zlib
 brew install libssh2