forked from lizan/service-control-client-cxx
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
31 lines (28 loc) · 920 Bytes
/
.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
# Adding sudo:required such that Travis doesn't use containers; otherwise
# Bazel's sandbox execution will fail. The alternative is to disable Bazel's
# sandbox execution using "--genrule_strategy=standalone",
# "--spawn_strategy=standalone" and --test_strategy=standalone.
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- wget
# Package list from http://bazel.io/docs/install.html
- oracle-java8-installer
- pkg-config
- zip
- zlib1g-dev
install:
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
- export CC=gcc-4.8
- export CXX=g++-4.8
- wget 'https://github.com/bazelbuild/bazel/releases/download/0.3.1/bazel-0.3.1-installer-linux-x86_64.sh' -O ./bazel-installer.sh
- chmod +x ./bazel-installer.sh
- ./bazel-installer.sh --user
script:
- script/setup
- bazel test :all --test_output=errors