forked from google/j2cl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (33 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# trusty beta image has jdk8, gcc4.8.4
dist: trusty
sudo: required
# xcode8 has jdk8
osx_image: xcode8
# Not technically required but suppresses 'Ruby' in Job status message.
language: java
os:
- linux
- osx
before_install:
- |
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
OS=darwin
else
sysctl kernel.unprivileged_userns_clone=1
OS=linux
fi
BAZEL=$(cat ".bazelversion")
wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL}/bazel-${BAZEL}-installer-${OS}-x86_64.sh"
chmod +x install.sh
./install.sh --user
rm -f install.sh
before_script:
- echo "startup --output_base=$HOME/.cache/bazel" >> .bazelrc
# Avoid progress indicators that can blow out log which makes using WEB UI difficult
- echo "common --noshow_progress" >> .bazelrc
- echo "common --noshow_loading_progress" >> .bazelrc
# This is so we understand failures better
- echo "build --verbose_failures" >> .bazelrc
script: ./bazel_build_test.sh
notifications:
email: false