Fix linux-bazel build (#566)

Install bazel via apt-source
This commit is contained in:
Eugene Kliuchnikov 2017-06-22 11:38:49 +02:00 committed by GitHub
parent e51eae564f
commit efdff3f14e
2 changed files with 4 additions and 13 deletions

View File

@ -235,10 +235,12 @@ matrix:
addons: addons:
apt: apt:
sources: sources:
- sourceline: "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8"
key_url: "https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg"
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
packages: packages:
- wget - oracle-java8-installer
- pkg-config - bazel
- os: osx - os: osx
env: BUILD_SYSTEM=bazel env: BUILD_SYSTEM=bazel

View File

@ -2,17 +2,6 @@
case "$1" in case "$1" in
"before_install") "before_install")
case "${TRAVIS_OS_NAME}" in
"linux")
case "${BUILD_SYSTEM}" in
"bazel")
wget https://github.com/bazelbuild/bazel/releases/download/0.4.5/bazel_0.4.5-linux-x86_64.deb
echo 'b494d0a413e4703b6cd5312403bea4d92246d6425b3be68c9bfbeb8cc4db8a55 bazel_0.4.5-linux-x86_64.deb' | sha256sum -c --strict || exit 1
sudo dpkg -i bazel_0.4.5-linux-x86_64.deb
;;
esac
;;
esac
;; ;;
"install") "install")
case "${TRAVIS_OS_NAME}" in case "${TRAVIS_OS_NAME}" in