Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 97194d1

Browse files
authored
Travis: don't require sudo for bazel installation. (#209)
1 parent d89fa54 commit 97194d1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
sudo: required
21
dist: trusty
32

43
matrix:
@@ -14,9 +13,11 @@ matrix:
1413
install:
1514
- case "$BUILD" in
1615
"BAZEL")
17-
curl -LO "https://github.com/bazelbuild/bazel/releases/download/0.26.0/bazel_0.26.0-linux-x86_64.deb" ;
18-
sudo dpkg -i bazel_*.deb ;
19-
sudo apt-get install -f ;
16+
export BAZEL_OS="linux" ;
17+
export BAZEL_VERSION="0.26.0" ;
18+
wget "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-${BAZEL_OS}-x86_64.sh" ;
19+
chmod +x bazel-${BAZEL_VERSION}-installer-${BAZEL_OS}-x86_64.sh ;
20+
./bazel-${BAZEL_VERSION}-installer-${BAZEL_OS}-x86_64.sh --user ;
2021
bazel version ;;
2122
esac
2223

0 commit comments

Comments
 (0)