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

Commit

Permalink
Travis: don't require sudo for bazel installation. (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-easy authored Jul 23, 2019
1 parent d89fa54 commit 97194d1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
sudo: required
dist: trusty

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

Expand Down

0 comments on commit 97194d1

Please sign in to comment.