-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
45 lines (40 loc) · 1.22 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
os: linux
dist: bionic
sudo: false
language: java
jdk: openjdk11
#branches:
# only:
# - master
before_cache:
- rm -rf $HOME/.cache/bazel/_bazel_travis/install/
cache:
directories:
- $HOME/local
- $HOME/.bazel
- $HOME/.cache/bazel
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++6
- build-essential
- g++
before_install:
- .travis/install-bazel.sh 1.1.0
- bazel $BAZEL_OPTS version
- bazel $BAZEL_OPTS info
- bazel $BAZEL_OPTS fetch --curses=no -- "//ruby/..."
- (cd examples && bazel $BAZEL_OPTS fetch --curses=no -- "//...")
install:
- bazel $BAZEL_OPTS build $BAZEL_BUILD_OPTS --show_progress_rate_limit 0 -- //ruby/...
- (cd examples && bazel $BAZEL_OPTS build $BAZEL_BUILD_OPTS --show_progress_rate_limit 0 -- //...)
script:
- bazel $BAZEL_OPTS test $BAZEL_BUILD_OPTS --show_progress_rate_limit 0 --test_output=streamed -- //ruby/...
- (cd examples && bazel $BAZEL_OPTS test $BAZEL_BUILD_OPTS --show_progress_rate_limit 0 --test_output=streamed -- //...)
env:
global:
- PATH=$PATH:$HOME/local/bin
- BAZEL_OPTS="--host_jvm_args=-Xmx500m --host_jvm_args=-Xms500m"
- BAZEL_BUILD_OPTS="--curses=no --genrule_strategy=standalone --spawn_strategy=standalone --verbose_failures -j 20"