forked from bazelbuild/rules_closure
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (41 loc) · 1002 Bytes
/
.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
39
40
41
42
43
44
45
46
# 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
env:
- BAZEL=0.22.0
before_install:
- |
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
OS=darwin
else
sysctl kernel.unprivileged_userns_clone=1
OS=linux
fi
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
script:
- |
bazel \
--output_base=$HOME/.cache/bazel \
--host_jvm_args=-Xmx500m \
--host_jvm_args=-Xms500m \
test \
--worker_verbose \
--verbose_failures \
--test_output=errors \
--strategy=Genrule=sandboxed \
--spawn_strategy=sandboxed \
--worker_sandboxing \
--local_resources=400,2,1.0 \
...
notifications:
email: false