Ray Milkey | d83ef8e | 2018-11-09 11:57:01 -0800 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | # exit on errors |
| 4 | set -eu -o pipefail |
| 5 | |
| 6 | BAZEL_VERSION="none" |
| 7 | |
| 8 | if [ ${GERRIT_BRANCH} == "onos-1.14" ] |
| 9 | then |
| 10 | BAZEL_VERSION="0.15.2" |
| 11 | fi |
| 12 | if [ ${GERRIT_BRANCH} == "onos-1.15" -o ${GERRIT_BRANCH} == "master" -o ${GERRIT_BRANCH} == "upan-connect18" ] |
| 13 | then |
| 14 | BAZEL_VERSION="0.19.0" |
| 15 | fi |
| 16 | |
| 17 | if [ ${BAZEL_VERSION} != "none" ] |
| 18 | then |
| 19 | echo Installing bazel version ${BAZEL_VERSION} |
| 20 | curl -L -o bazel.sh -s https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh |
| 21 | else |
| 22 | echo Not installing bazel |
| 23 | fi |
| 24 | |