forked from atolab/zhe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (41 loc) · 1.41 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
language: c
# Platform descriptions
# NOTE: These can be used in creating the build matrix by making use of the
# anchor/alias YAML features.
linux_gcc8: &linux_gcc8
os: linux
compiler: gcc
addons:
apt:
update: true
sources: [ ubuntu-toolchain-r-test ]
packages: [ gcc-8 g++-8 ]
matrix:
include:
- <<: *linux_gcc8
env: [ BUILD_TYPE=Debug, ZCFG=p2p ]
- <<: *linux_gcc8
env: [ BUILD_TYPE=Release, ZCFG=p2p ]
- <<: *linux_gcc8
env: [ BUILD_TYPE=Debug, ZCFG_TCP=ON, ZCFG_SSL=ON, ZCFG=client-large ]
- <<: *linux_gcc8
env: [ BUILD_TYPE=Release, ZCFG_TCP=ON, ZCFG_SSL=ON, ZCFG=client-large ]
- <<: *linux_gcc8
env: [ BUILT_TYPE=Debug, ZCFG=p2p-large ]
- <<: *linux_gcc8
env: [ BUILT_TYPE=Release, ZCFG=p2p-large ]
- <<: *linux_gcc8
env: [ BUILT_TYPE=Debug, ZCFG=p2p-small ]
- <<: *linux_gcc8
env: [ BUILT_TYPE=Release, ZCFG=p2p-small ]
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DTCP=${ZCFG_TCP:-OFF} -DSSL=${ZCFG_SSL:-OFF} -DZHE_CONFIG=${ZCFG} ..
- cmake --build .
- if [ "${ZCFG_TCP:-OFF}" -eq "ON" ] ; then exit 0 ; else
pids="" ;
for k in 0 1 2 3 ; do example/throughput/throughput -D10 -X10 -pqxk$k & pids="$pids $!" ; done ;
sleep 12 ; kill -9 $pids 2>/dev/null ;
res=0 ; for p in $pids ; do wait $p ; x=$? ; [ $x -ne 0 ] && res=$x ; done ; exit $res ;
fi