Pin bazel version in travis builds (#207)

pull/205/head
Owais Lone 5 years ago committed by Bogdan Drutu
parent e2601ef16f
commit df67dc5244
  1. 16
      .travis.yml

@ -11,21 +11,13 @@ matrix:
jdk: oraclejdk8
env: BUILD=GRADLE
before_install:
- case "$BUILD" in
"BAZEL")
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list ;
curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | sudo apt-key add - ;
sudo apt-get update ;;
esac
install:
- case "$BUILD" in
"BAZEL")
sudo apt-get install bazel ;
echo "build --disk_cache=$HOME/bazel-cache" > ~/.bazelrc ;
echo "build --experimental_strict_action_env" >> ~/.bazelrc ;
bazel version;;
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 ;
bazel version ;;
esac
script:

Loading…
Cancel
Save