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

Commit df67dc5

Browse files
owaisBogdan Drutu
authored andcommitted
Pin bazel version in travis builds (#207)
1 parent e2601ef commit df67dc5

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.travis.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,13 @@ matrix:
1111
jdk: oraclejdk8
1212
env: BUILD=GRADLE
1313

14-
before_install:
15-
- case "$BUILD" in
16-
"BAZEL")
17-
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list ;
18-
curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | sudo apt-key add - ;
19-
sudo apt-get update ;;
20-
esac
21-
2214
install:
2315
- case "$BUILD" in
2416
"BAZEL")
25-
sudo apt-get install bazel ;
26-
echo "build --disk_cache=$HOME/bazel-cache" > ~/.bazelrc ;
27-
echo "build --experimental_strict_action_env" >> ~/.bazelrc ;
28-
bazel version;;
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 ;
20+
bazel version ;;
2921
esac
3022

3123
script:

0 commit comments

Comments
 (0)