summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-07-22 17:45:03 -0400
committerEdward Thomson <ethomson@github.com>2016-10-01 19:01:39 -0500
commit1db5e0276f9641e57744508e5e81356f804a9592 (patch)
tree05d2342158c004c2635118e25ad6c5427b147ad3
parente9f10cdad1f513cb334f7534b3ea72a94431c95c (diff)
downloadlibgit2-1db5e0276f9641e57744508e5e81356f804a9592.tar.gz
ci: install homebrew's zlib on mac
-rwxr-xr-xscript/cibuild.sh4
-rwxr-xr-xscript/install-deps-osx.sh1
2 files changed, 5 insertions, 0 deletions
diff --git a/script/cibuild.sh b/script/cibuild.sh
index 00cde0ada..54b4f1b58 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 5510379d4..da0672d2b 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