diff options
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/run-tests.sh | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh index 136988e11e..9bac5b93c8 100755 --- a/.gitlab-ci/run-tests.sh +++ b/.gitlab-ci/run-tests.sh @@ -1,11 +1,32 @@ #!/bin/bash -set -e +set +x +set +e +srcdir=$( pwd ) builddir=$1 -cd ${builddir} +export GDK_BACKEND=x11 xvfb-run -a -s "-screen 0 1024x768x24" \ - meson test --print-errorlogs \ + meson test -C ${builddir} \ + --print-errorlogs \ --suite=gtk \ --no-suite=gtk:a11y + +# Store the exit code for the CI run, but always +# generate the reports +exit_code=$? + +$srcdir/.gitlab-ci/meson-junit-report.py \ + --project-name=gtk \ + --job-id="${CI_JOB_NAME}" \ + --output=${builddir}/report.xml \ + ${builddir}/meson-logs/testlog.json +$srcdir/.gitlab-ci/meson-html-report.py \ + --project-name=gtk \ + --job-id="${CI_JOB_NAME}" \ + --reftest-output-dir="${builddir}/testsuite/reftests/output" \ + --output=${builddir}/report.html \ + ${builddir}/meson-logs/testlog.json + +exit $exit_code |