From f496accc2b63ba7302fdfe726c44fc73536c7d0a Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Thu, 10 Dec 2015 15:27:22 -0800 Subject: [PATCH] Use brew to install protobuf on Travis Brew now has beta-1, and is much faster than compiling each time. --- buildscripts/make_dependencies.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildscripts/make_dependencies.sh b/buildscripts/make_dependencies.sh index e2c05c10c54..cd8299dfaca 100755 --- a/buildscripts/make_dependencies.sh +++ b/buildscripts/make_dependencies.sh @@ -11,7 +11,8 @@ mkdir -p $DOWNLOAD_DIR # Can't check for presence of directory as cache auto-creates it. if [ -f ${INSTALL_DIR}/bin/protoc ]; then echo "Not building protobuf. Already built" -# TODO(ejona): swap to `brew install --devel protobuf` once it is up-to-date +elif [ "$(uname)" = Darwin ]; then + brew install --devel protobuf else wget -O - https://github.com/google/protobuf/archive/v${PROTOBUF_VERSION}.tar.gz | tar xz -C $DOWNLOAD_DIR pushd $DOWNLOAD_DIR/protobuf-${PROTOBUF_VERSION}