aboutsummaryrefslogtreecommitdiff
path: root/.shippable.yml
blob: 9c8c1c7f1f0d3ad1a8ce81f13294cf61bb8ad917 (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
44
45
46
47
48
49
50
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="--disable-test-perf"
    - CONF="--disable-abi-compat --disable-test-perf"

build:
  ci:
    - rm -f /etc/apt/sources.list.d/basho_riak.list
    - apt-get update
    - apt-get install --no-install-recommends -yy asciidoctor autoconf automake build-essential ccache clang doxygen gcc graphviz libconfig-dev libcunit1-dev libnuma-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
    - if [ "${CC#clang}" != "${CC}" ] ; then export CXX="${CC/clang/clang++}"; fi
    - echo ./configure $CONF
    - ./configure $CONF
    - make -j $(nproc)
    # Run tests only with GCC
    - |
      if [ "${CC}" == "gcc" ] ; then
        echo "=== Running test suite with basic scheduler ===";
        ODP_SCHEDULER=basic make check;
        ./scripts/shippable-post.sh basic;
        echo "=== Running test suite with sp scheduler ===";
        ODP_SCHEDULER=sp make check;
        ./scripts/shippable-post.sh sp;
        echo "=== Running test suite with scalable scheduler ===";
        ODP_SCHEDULER=scalable make check;
        ./scripts/shippable-post.sh scalable;
      fi
    - 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