summaryrefslogtreecommitdiff
path: root/ci/scripts/tests.sh
blob: abf4bc865d03be22ec461fe30bd2745460200d6e (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
#!/bin/bash

set -euo pipefail

cd /workspace/rabbitmq/deps/$project

trap 'catch $?' EXIT

SPAN_ID=${GITHUB_RUN_ID}-${project}

catch() {
    if [ "$1" != "0" ]; then
        make ct-logs-archive && mv *-ct-logs-*.tar.xz /workspace/ct-logs/
    fi

    buildevents step ${GITHUB_RUN_ID} ${SPAN_ID} ${STEP_START} ${project}
}

buildevents cmd ${GITHUB_RUN_ID} ${SPAN_ID} test-build -- \
            make test-build

buildevents cmd ${GITHUB_RUN_ID} ${SPAN_ID} tests -- \
            make tests \
                 FULL= \
                 FAIL_FAST=1 \
                 SKIP_AS_ERROR=1