Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 67585b2

Browse files
author
Ian Sturdy
authored
Build/test everything in Travis presubmits. (#64)
Also add a --local_resources flag to attempt to avoid bazel ooms--in container-based builds, it can try to allocate machine RAM rather than container RAM.
1 parent f2a9092 commit 67585b2

File tree

2 files changed

+6
-74
lines changed

2 files changed

+6
-74
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: cpp
22
os: linux
33
dist: trusty
44
sudo: false
5+
env: BAZEL_OPTIONS=--local_resources=4096,2,1.0
56

67
before_install:
78
- tools/format.sh
@@ -10,4 +11,8 @@ before_install:
1011
- ./bazel-0.8.1-installer-linux-x86_64.sh --user
1112

1213
script:
13-
- tools/ci.sh
14+
# We can't use --noshow_progress because Travis terminates the
15+
# build after 10 mins without output.
16+
- bazel build $BAZEL_OPTIONS --experimental_ui_actions_shown=1 -k $(bazel query "kind(rule, //...)" | grep -v :_)
17+
- bazel test $BAZEL_OPTIONS --experimental_ui_actions_shown=1 -k $(bazel query "kind(test, //...) except attr('tags', 'manual|noci', //...)" | grep -v :_)
18+

tools/ci.sh

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)