aboutsummaryrefslogtreecommitdiff
path: root/.shippable.yml
blob: 6103968cf708571e6f03f8951d86c1f77aa6aab3 (plain)
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
language: c

compiler:
  - gcc
  - clang

integrations:
  notifications:
    - integrationName: email
      type: email
      on_success: never
      on_failure: never
      on_cancel: never
      on_pull_request: never

env:
    - CONF="--enable-dpdk-shared --disable-test-perf"
    - CONF="--enable-dpdk-shared --disable-abi-compat --disable-test-perf"

build:
  ci:
    - add-apt-repository -y ppa:lumag/odp-xenial
    - rm -f /etc/apt/sources.list.d/basho_riak.list
    - apt-get update
    - apt-get install --no-install-recommends --option Acquire::Retries=10 --option Acquire::http::Timeout=300 -yy asciidoctor autoconf automake build-essential ccache clang doxygen gcc graphviz libconfig-dev libcunit1-dev libnuma-dev libdpdk-dev libpcap-dev libssl-dev libtool mscgen xsltproc
    - mkdir -p $HOME/odp-shmdir
    - export CI=true ODP_SHM_DIR=$HOME/odp-shmdir ODP_TEST_OUT_XML=yes
    - ./bootstrap
    # Clang warns about DPDK internal headers
    - if [ "${CC#clang}" != "${CC}" ] ; then export CXX="${CC/clang/clang++}"; export EXTRA_CFLAGS="-Wno-cast-align"; 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
    - 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