[ubuntu] Rework bazel installation to avoid using apt repos (#3088)

This commit is contained in:
Sergey Dolin
2021-04-12 13:31:34 +05:00
committed by GitHub
parent 59997be01a
commit 98070a66fc

View File

@@ -4,13 +4,12 @@
## Desc: Installs Bazel and Bazelisk (A user-friendly launcher for Bazel)
################################################################################
# Install bazel
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
apt-get update -y
apt-get install -y bazel
source $HELPER_SCRIPTS/install.sh
# Install bazelisk
npm install -g @bazel/bazelisk
invoke_tests "Tools" "Bazel"
# run bazelisk once in order to instal /usr/local/bin/bazel binary
bazelisk
invoke_tests "Tools" "Bazel"