blob: 150a25d9a4d480c455678c2b6465837ec1e79bf0 [file] [log] [blame]
#!/bin/bash
# exit on errors
set -eu -o pipefail
BAZEL_VERSION="none"
if [ ${GERRIT_BRANCH} == "onos-1.14" ]
then
BAZEL_VERSION="0.15.2"
fi
if [ ${GERRIT_BRANCH} == "onos-1.15" -o ${GERRIT_BRANCH} == "master" -o ${GERRIT_BRANCH} == "upan-connect18" ]
then
BAZEL_VERSION="0.19.0"
fi
if [ ${BAZEL_VERSION} != "none" ]
then
echo Installing bazel version ${BAZEL_VERSION}
curl -L -o bazel.sh -s https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh
else
echo Not installing bazel
fi