Skip to content

Commit

Permalink
Update CI Install Scripts (#16)
Browse files Browse the repository at this point in the history
* feat: move bazel 0.13.0 to 0.13.1
- we maintain point releases

* fix: fix bazel installs, use built-in-jdk
see: bazelbuild/continuous-integration#269
  • Loading branch information
promiseofcake authored May 26, 2018
1 parent 3b42f66 commit 7074e07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
- BAZEL_VERSION=0.10.1
- BAZEL_VERSION=0.11.1
- BAZEL_VERSION=0.12.0
- BAZEL_VERSION=0.13.0
- BAZEL_VERSION=0.13.1

matrix:
fast_finish: true
Expand Down
11 changes: 6 additions & 5 deletions scripts/install_bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ pushd $BAZEL_INSTALL

if [ "$TRAVIS_OS_NAME" == "linux" ]; then
echo "Installing Bazel ${BAZEL_VERSION} for Linux"
DEBIAN_PACKAGE_NAME="bazel_${BAZEL_VERSION}-linux-x86_64.deb"
wget --no-clobber "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/${DEBIAN_PACKAGE_NAME}"
sudo dpkg -i ${DEBIAN_PACKAGE_NAME}
DEBIAN_INSTALL_SCRIPT="bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh"
wget --no-clobber "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/${DEBIAN_INSTALL_SCRIPT}"
chmod +x ${DEBIAN_INSTALL_SCRIPT}
./${DEBIAN_INSTALL_SCRIPT} --user
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
echo "Installing Bazel ${BAZEL_VERSION} for Darwin"
DARWIN_INSTALL_SCRIPT=bazel-${BAZEL_VERSION}-without-jdk-installer-darwin-x86_64.sh
curl -sLO https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/${DARWIN_INSTALL_SCRIPT}
DARWIN_INSTALL_SCRIPT=bazel-${BAZEL_VERSION}-installer-darwin-x86_64.sh
curl -sLO "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/${DARWIN_INSTALL_SCRIPT}"
chmod +x ${DARWIN_INSTALL_SCRIPT}
./${DARWIN_INSTALL_SCRIPT} --user
else
Expand Down

0 comments on commit 7074e07

Please sign in to comment.