forked from iotaledger/compass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (57 loc) · 1.29 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# trusty beta image has jdk8, gcc4.8.4
dist: trusty
sudo: required
# xcode8 has jdk8
osx_image: xcode8.3
# Not technically required but suppresses 'Ruby' in Job status message.
language: java
os:
- linux
# - osx
env:
global:
- V=0.28.0
matrix:
- TEST=bazel
- TEST=inMemoryBootstrap
- TEST=inMemoryRestart
- TEST=remoteRestart
- TEST=remoteLayerCalculation
addons:
apt:
packages:
- jq
before_install:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
OS=darwin
else
OS=linux
fi
URL="https://github.com/bazelbuild/bazel/releases/download/${V}/bazel-${V}-installer-${OS}-x86_64.sh"
wget -O install.sh "${URL}"
chmod +x install.sh
./install.sh --user
rm -f install.sh
script:
- |
if [[ "${TEST}" == "bazel" ]]; then
bazel \
--output_base=$HOME/.cache/bazel \
--host_jvm_args=-Xmx500m \
--host_jvm_args=-Xms500m \
test \
--config=ci \
--experimental_repository_cache="$HOME/.bazel_repository_cache" \
--local_resources=400,1,1.0 \
//...
fi
# run HOW TO steps
- |
if [[ "${TEST}" != "bazel" ]]; then
/bin/sh CI/setupTests.sh;
/bin/sh CI/${TEST}.sh;
sudo /bin/sh CI/cleanUp.sh;
fi
notifications:
email: false