summaryrefslogtreecommitdiff
path: root/.gitlab-ci/run-tests-docker.sh
blob: 147299ad7762d9d0b620c11ea18c66d1d25ef471 (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
#!/bin/bash

set +x
set +e

srcdir=$( pwd )
builddir=$1

meson test -C ${builddir} \
        --print-errorlogs

# Store the exit code for the CI run, but always
# generate the reports
exit_code=$?

cd ${builddir}

$srcdir/.gitlab-ci/meson-junit-report.py \
        --project-name=atk \
        --job-id="${CI_JOB_NAME}" \
        --output=report.xml \
        meson-logs/testlog.json

exit $exit_code