-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
21 lines (20 loc) · 860 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
dist: xenial
language: java
matrix:
include:
- os: linux
dist: xenial
env: DOWNLOAD_URL=https://github.com/bazelbuild/bazel/releases/download/0.25.0/bazel-0.25.0-linux-x86_64 DOWNLOAD_NAME=bazel BAZEL_COMMAND="./bazel"
- os: osx
env: DOWNLOAD_URL=https://github.com/bazelbuild/bazel/releases/download/0.25.0/bazel-0.25.0-installer-darwin-x86_64.sh DOWNLOAD_NAME=bazel-installer BAZEL_COMMAND="bazel"
# FIXME: When there's cache for linux job. Bazel will throw permission denied exception
#cache:
# directories:
# - $HOME/.cache/bazel
before_install:
- wget "${DOWNLOAD_URL}" -O "${DOWNLOAD_NAME}"
- chmod +x "${DOWNLOAD_NAME}"
# run bazel osx installer
- if [[ "`uname`" == "Darwin" ]]; then `pwd`/"${DOWNLOAD_NAME}"; fi
script:
- ${BAZEL_COMMAND} test --verbose_failures --noshow_progress --test_output=errors //...