forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jose Nino [email protected] Description: pin our bazel install to 0.26.1. There are a few items that do not work yet on 0.27.0, and we want to have a controlled upgrade. Risk Level: low -- pins the bazel version for ease of compatibility Testing: CI Signed-off-by: JP Simard <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# Installs the dependencies required for a macOS build. | ||
|
||
function is_installed { | ||
brew ls --versions "$1" >/dev/null | ||
} | ||
|
||
function install { | ||
echo "Installing $1" | ||
if ! brew install "$1" | ||
then | ||
echo "Failed to install $1" | ||
exit 1 | ||
fi | ||
} | ||
|
||
if ! brew update; then | ||
echo "Failed to update homebrew" | ||
exit 1 | ||
fi | ||
|
||
DEPS="automake cmake coreutils go libtool wget ninja" | ||
for DEP in ${DEPS} | ||
do | ||
is_installed "${DEP}" || install "${DEP}" | ||
done | ||
|
||
# Install bazel manually until https://github.com/bazelbuild/continuous-integration/issues/128 is fixed. | ||
# Otherwise we always pull the latest release automatically. | ||
wget -c https://github.com/bazelbuild/bazel/releases/download/0.26.1/bazel-0.26.1-installer-darwin-x86_64.sh | ||
chmod +x bazel-0.26.1-installer-darwin-x86_64.sh | ||
sudo ./bazel-0.26.1-installer-darwin-x86_64.sh | ||
bazel version |