-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
48 lines (43 loc) · 1.14 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
39
40
41
42
43
44
45
46
47
48
# Forked from https://github.com/pubref/rules_protobuf
dist: trusty
language: java
os: linux
cache:
directories:
- $HOME/bazel/install
- $HOME/bazel/outbase
before_install:
- BAZEL_VERSION=0.10.0
- OS=linux
- ARCH=x86_64
- GH_BASE="https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION"
- GH_ARTIFACT="bazel-$BAZEL_VERSION-installer-$OS-$ARCH.sh"
- URL="$GH_BASE/$GH_ARTIFACT"
- echo $URL
- mkdir -p ${HOME}/bazel/install
- cd ${HOME}/bazel/install
- wget -c -O install_$BAZEL_VERSION.sh $URL
- chmod +x install_$BAZEL_VERSION.sh
- ./install_$BAZEL_VERSION.sh --user
- cd ${TRAVIS_BUILD_DIR}
script:
- |
bazel \
--output_base=$HOME/bazel/outbase \
--batch \
--host_jvm_args=-Xmx500m \
--host_jvm_args=-Xms500m \
test \
--verbose_failures \
--test_output=errors \
--test_strategy=standalone \
--spawn_strategy=standalone \
--genrule_strategy=standalone \
--local_resources=400,2,1.0 \
--worker_verbose \
--strategy=Javac=worker \
--strategy=Closure=worker \
//src/test/... \
$FLAGS
notifications:
email: false