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 | |
Ray Milkey | 0042c8c | 2018-12-17 08:19:37 -0800 | [diff] [blame^] | 6 | BAZEL_VERSION="0.19.2" |
Ray Milkey | d83ef8e | 2018-11-09 11:57:01 -0800 | [diff] [blame] | 7 | |
| 8 | if [ ${BAZEL_VERSION} != "none" ] |
| 9 | then |
| 10 | echo Installing bazel version ${BAZEL_VERSION} |
| 11 | curl -L -o bazel.sh -s https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh |
| 12 | else |
| 13 | echo Not installing bazel |
| 14 | fi |
| 15 | |
Ray Milkey | 4cf12d6 | 2018-11-09 13:10:50 -0800 | [diff] [blame] | 16 | chmod +x bazel.sh |
| 17 | ./bazel.sh --user |
| 18 | |