Skip to content

Commit

Permalink
Travis setup
Browse files Browse the repository at this point in the history
  • Loading branch information
anders617 committed Oct 29, 2019
1 parent c528f30 commit 16f99bb
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This is from Bazel's former travis setup, to avoid blowing up the RAM usage.
startup --host_jvm_args=-Xmx2500m
startup --host_jvm_args=-Xms2500m
startup --batch
test --ram_utilization_factor=10

# This is so we understand failures better
build --verbose_failures

# This is so we don't use sandboxed execution. Sandboxed execution
# runs stuff in a container, and since Travis already runs its script
# in a container (unless you require sudo in your .travis.yml) this
# fails to run tests.
build --spawn_strategy=standalone --genrule_strategy=standalone
test --test_strategy=standalone

# Below this line, .travis.yml will cat the default bazelrc.
# This is needed so Bazel starts with the base workspace in its
# package path.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: go

dist: trusty

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- wget
- pkg-config

before_install:
- wget https://github.com/bazelbuild/bazel/releases/download/1.1.0/bazel_1.1.0-linux-x86_64.deb
- sha256sum -c tools/bazel_1.1.0-linux-x86_64.deb.sha256
- sudo dpkg -i bazel_1.1.0-linux-x86_64.deb

script:
- bazel build //cmd:all
1 change: 1 addition & 0 deletions tools/bazel_1.1.0-linux-x86_64.deb.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
138b47ffd54924e3c0264c65d31d3927803fb9025db4d5b18107df79ee3bda95 bazel_1.1.0-linux-x86_64.deb

0 comments on commit 16f99bb

Please sign in to comment.