forked from repu1sion/odp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.shippable.yml
51 lines (45 loc) · 1.49 KB
/
.shippable.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
language: c
compiler:
- gcc
- clang
env:
- CONF="--disable-test-perf --disable-test-perf-proc"
- CONF="--disable-abi-compat --disable-test-perf --disable-test-perf-proc"
# - CONF="--enable-schedule-sp"
# - CONF="--enable-schedule-iquery"
# - CONF="--enable-dpdk-zero-copy"
# - CROSS_ARCH="arm64"
# - CROSS_ARCH="armhf" CFLAGS="-march=armv7-a"
# - CROSS_ARCH="powerpc"
# - CROSS_ARCH="i386"
build:
pre_ci:
# use Dockerfile to install additional CI dependencies
- docker build -t=odp/dev ./scripts
# use image built in 'pre_ci' for CI job
pre_ci_boot:
image_name: odp/dev
image_tag: latest
pull: false
options:
ci:
- mkdir -p $HOME/odp-shmdir
- export CI=true ODP_SHM_DIR=$HOME/odp-shmdir ODP_TEST_OUT_XML=yes
- ./bootstrap
- if [ "${CC#clang}" != "${CC}" ] ; then export CXX="${CC/clang/clang++}"; fi
- echo ./configure $CONF
- ./configure $CONF
- make -j $(nproc)
- ODP_SCHEDULER=basic make check
- ./scripts/shippable-post.sh basic
- ODP_SCHEDULER=sp make check
- ./scripts/shippable-post.sh sp
- ODP_SCHEDULER=iquery make check
- ./scripts/shippable-post.sh iquery
- ODP_SCHEDULER=scalable make check
- ./scripts/shippable-post.sh scalable
- rm -rf $HOME/odp-shmdir
on_failure:
- ./scripts/shippable-post.sh
- cat config.log
- find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done