Rather than updating the packages on a generic Debian Unstable image every time a CI build happens, pre-build the image and pre-download all the dependencies. This should speed the CI runs up; they currently take about 4 minutes. Signed-off-by: Philip Withnall <withnall@endlessm.com>
30 lines
512 B
Bash
Executable file
30 lines
512 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set +e
|
|
|
|
case "$1" in
|
|
--log-file)
|
|
log_file="$2"
|
|
shift
|
|
shift
|
|
;;
|
|
*)
|
|
log_file="_build/meson-logs/testlog.json"
|
|
esac
|
|
|
|
meson test \
|
|
-C _build \
|
|
--timeout-multiplier "${MESON_TEST_TIMEOUT_MULTIPLIER}" \
|
|
--no-suite flaky \
|
|
"$@"
|
|
|
|
exit_code=$?
|
|
|
|
python3 .gitlab-ci/meson-junit-report.py \
|
|
--project-name=malcontent \
|
|
--job-id "${CI_JOB_NAME}" \
|
|
--output "_build/${CI_JOB_NAME}-report.xml" \
|
|
"${log_file}"
|
|
|
|
exit $exit_code
|