2018-02-13 16:21:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-03-01 10:08:27 +00:00
|
|
|
srcdir=$(pwd)
|
|
|
|
|
2018-04-11 10:18:55 +00:00
|
|
|
mkdir -p _ccache
|
|
|
|
export CCACHE_BASEDIR="$(pwd)"
|
|
|
|
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
|
|
|
|
|
|
|
|
ccache --zero-stats
|
|
|
|
ccache --show-stats
|
|
|
|
export CCACHE_DISABLE=true
|
2018-03-01 10:08:27 +00:00
|
|
|
meson \
|
|
|
|
-Dx11-backend=true \
|
|
|
|
-Dwayland-backend=true \
|
|
|
|
-Dbroadway-backend=true \
|
|
|
|
-Dvulkan=yes \
|
|
|
|
_build $srcdir
|
2018-04-11 10:18:55 +00:00
|
|
|
unset CCACHE_DISABLE
|
2018-03-01 10:08:27 +00:00
|
|
|
|
|
|
|
cd _build
|
|
|
|
|
2018-02-13 16:21:18 +00:00
|
|
|
ninja
|
2018-04-11 10:18:55 +00:00
|
|
|
ccache --show-stats
|
2018-02-17 10:55:40 +00:00
|
|
|
|
2019-04-05 18:29:58 +00:00
|
|
|
set +e
|
|
|
|
|
2018-02-17 10:55:40 +00:00
|
|
|
xvfb-run -a -s "-screen 0 1024x768x24" \
|
|
|
|
meson test \
|
2019-03-26 15:37:22 +00:00
|
|
|
--timeout-multiplier 2 \
|
2018-02-17 10:55:40 +00:00
|
|
|
--print-errorlogs \
|
2019-02-08 10:49:24 +00:00
|
|
|
--suite=gtk \
|
|
|
|
--no-suite=gtk:gsk \
|
|
|
|
--no-suite=gtk:a11y
|
2019-04-05 18:29:58 +00:00
|
|
|
|
|
|
|
# Save the exit code
|
|
|
|
exit_code=$?
|
|
|
|
|
|
|
|
# We always want to run the report generator
|
|
|
|
$srcdir/.gitlab-ci/meson-junit-report.py \
|
|
|
|
--project-name=gtk \
|
|
|
|
--job-id="${CI_JOB_NAME}" \
|
|
|
|
--output=report.xml \
|
|
|
|
meson-logs/testlog.json
|
|
|
|
|
|
|
|
exit $exit_code
|