-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy path.travis.yml
48 lines (43 loc) · 1.32 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
46
47
48
dist: trusty
sudo: required
language: java
os:
- linux
addons:
- postgresql: "9.4"
before_install:
- |
sysctl kernel.unprivileged_userns_clone=1
export BAZEL_VERSION=0.15.2
wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh"
chmod +x install.sh
./install.sh --user
rm -f install.sh
export ETCD_VERSION=3.3.8
wget "https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/etcd-v${ETCD_VERSION}-linux-amd64.tar.gz"
tar xzf "etcd-v${ETCD_VERSION}-linux-amd64.tar.gz"
export PATH=`pwd`"/etcd-v${ETCD_VERSION}-linux-amd64:$PATH"
psql -c 'create database heimtest;' -U postgres
script:
- |
bazel \
--output_base=$HOME/.cache/bazel \
--batch \
--host_jvm_args=-Xmx1000m \
--host_jvm_args=-Xms1000m \
test \
--experimental_repository_cache="$HOME/.bazel_repository_cache" \
--noshow_progress \
--local_resources=400,1,1.0 \
--test_env=DSN="postgres://postgres@localhost/heimtest?sslmode=disable" \
--test_output=errors \
--test_tag_filters=-dev \
--verbose_failures \
//...
notifications:
webhooks:
urls:
- http://52.10.123.209:8085/travishook
on_success: always
on_failure: always
on_start: never