diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-04-14 11:48:55 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-04-14 13:29:14 +0100 |
commit | 7b66f9604ddb4743276f38b6a17f10bf4d446583 (patch) | |
tree | a141e973ea4508263c4c164f258d112c220e7d20 /.gitlab-ci/run-tests.sh | |
parent | 6cf5295de3fd8297c9fab7d07b44e83d01753aee (diff) | |
download | pango-7b66f9604ddb4743276f38b6a17f10bf4d446583.tar.gz |
Improve the Pango CI pipeline on Linux
Use a scaled down version of the GTK and GLib CI set ups, with a custom
Docker image and multiple stages. The CI pipeline now generates a JUnit
report, which integrates with the GitLab merge requests; builds the
documentation as a separate stage; and publishes the API reference for
the master branch at the end.
Diffstat (limited to '.gitlab-ci/run-tests.sh')
-rwxr-xr-x | .gitlab-ci/run-tests.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh new file mode 100755 index 00000000..cca589b4 --- /dev/null +++ b/.gitlab-ci/run-tests.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +set +x +set +e + +srcdir=$( pwd ) +builddir=$1 + +meson test -C ${builddir} \ + --print-errorlogs \ + --suite=pango + +# Store the exit code for the CI run, but always +# generate the reports +exit_code=$? + +cd ${builddir} + +./utils/pango-list --verbose > fontlist.txt +./tests/test-font -p /pango/font/metrics --verbose +./utils/pango-view --no-display --output hello.png ${srcdir}/utils/HELLO.txt + +$srcdir/.gitlab-ci/meson-junit-report.py \ + --project-name=pango \ + --job-id="${CI_JOB_NAME}" \ + --output=report.xml \ + meson-logs/testlog.json + +exit $exit_code |