Skip to content

Commit 1d96644

Browse files
committed
Add .travis.yml file
1 parent b169954 commit 1d96644

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
61449f49b9505c66dc3c8d26c49a40e6aa06a4d9abd8a20c8e1fece3d9705900 bazel-0.2.0-installer-linux-x86_64.sh

.bazelrc.travis

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This is from Bazel's former travis setup, to avoid blowing up the RAM usage.
2+
startup --host_jvm_args=-Xmx2500m
3+
startup --host_jvm_args=-Xms2500m
4+
startup --batch
5+
test --ram_utilization_factor=10
6+
7+
# This is so we understand failures better
8+
build --verbose_failures
9+
10+
# This is so we use a recent enough GCC when building.
11+
# build --crosstool_top //tools/custom_crosstool:CROSSTOOL
12+
13+
# This is so we don't use sandboxed execution. Sandboxed execution
14+
# runs stuff in a container, and since Travis already runs its script
15+
# in a container (unless you require sudo in your .travis.yml) this
16+
# fails to run tests.
17+
build --spawn_strategy=standalone --genrule_strategy=standalone
18+
test --test_strategy=standalone
19+
20+
# Below this line, .travis.yml will cat the default bazelrc.
21+
# This is needed so Bazel starts with the base workspace in its
22+
# package path.

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
addons:
2+
apt:
3+
sources:
4+
- ubuntu-toolchain-r-test
5+
packages:
6+
- gcc-4.8
7+
- g++-4.8
8+
- wget
9+
# Package list from http://bazel.io/docs/install.html
10+
- openjdk-8-jdk
11+
- pkg-config
12+
- zip
13+
- unzip
14+
- zlib1g-dev
15+
16+
before_install:
17+
- wget 'https://github.com/bazelbuild/bazel/releases/download/0.2.0/bazel-0.2.0-installer-linux-x86_64.sh'
18+
- sha256sum -c .bazel-installer-linux-x86_64.sh.sha256
19+
- chmod +x bazel-0.2.0-installer-linux-x86_64.sh
20+
- ./bazel-0.2.0-installer-linux-x86_64.sh --user
21+
- mv .bazelrc.travis .bazelrc
22+
- cat ~/.bazelrc >> .bazelrc
23+
24+
script:
25+
- bazel build test/...
26+
- bazel run test:ScalaBinary
27+
- bazel test test/...

0 commit comments

Comments
 (0)