summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-05-25 15:27:08 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-05-25 15:27:37 +0200
commita8058cb12ced8e825d03412eea8aa647472050e2 (patch)
treeb3607e03d7b42cb227a4a79f5381671dc1263a55
parentaff04305c4ded8e128b0bd92ccf93e5b97b54d6a (diff)
downloadglib-a8058cb12ced8e825d03412eea8aa647472050e2.tar.gz
gitlab-ci: left-over from junit cleanup
This should have been part of GNOME/glib!2686 (sorry!) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r--.gitlab-ci.yml13
-rwxr-xr-x.gitlab-ci/run-tests.sh16
2 files changed, 1 insertions, 28 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b84ea52f8..84c7c8445 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -105,7 +105,6 @@ fedora-x86_64:
- "_build/docs/reference/gio/gio-undeclared.txt"
- "_build/docs/reference/gio/gio-undocumented.txt"
- "_build/docs/reference/gio/gio-unused.txt"
- - "_build/${CI_JOB_NAME}-report.xml"
- "_coverage"
debian-stable-x86_64:
@@ -138,7 +137,6 @@ debian-stable-x86_64:
- "_build/config.h"
- "_build/glib/glibconfig.h"
- "_build/meson-logs"
- - "_build/${CI_JOB_NAME}-report.xml"
installed-tests:
extends:
@@ -205,7 +203,6 @@ G_DISABLE_ASSERT:
- "_build/config.h"
- "_build/glib/glibconfig.h"
- "_build/meson-logs"
- - "_build/${CI_JOB_NAME}-report.xml"
valgrind:
extends:
@@ -225,7 +222,6 @@ valgrind:
_build
- ninja -C _build
- bash -x ./.gitlab-ci/run-tests.sh
- --log-file _build/meson-logs/testlog-valgrind.json
--wrap "valgrind --tool=memcheck --error-exitcode=1 --track-origins=yes --leak-check=full --leak-resolution=high --num-callers=50 --show-leak-kinds=definite,possible --show-error-list=yes --suppressions=${CI_PROJECT_DIR}/tools/glib.supp"
--no-suite no-valgrind
--no-suite slow
@@ -234,7 +230,7 @@ valgrind:
allow_failure: true
artifacts:
reports:
- junit: "_build/meson-logs/testlog.junit.xml"
+ junit: "_build/meson-logs/testlog-valgrind.junit.xml"
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always
expire_in: 1 week
@@ -281,7 +277,6 @@ cross-mingw64:
expire_in: 1 week
paths:
- _build/meson-logs
- - "_build/${env:CI_JOB_NAME}-report.xml"
- _build/glib/libglib-2.0-0.dll
- _build/gio/libgio-2.0-0.dll
- _build/gmodule/libgmodule-2.0-0.dll
@@ -309,7 +304,6 @@ msys2-mingw32:
expire_in: 1 week
paths:
- _build/meson-logs
- - "_build/${env:CI_JOB_NAME}-report.xml"
- _coverage/
vs2017-x64:
@@ -333,7 +327,6 @@ vs2017-x64:
expire_in: 1 week
paths:
- _build/meson-logs
- - "_build/${env:CI_JOB_NAME}-report.xml"
- _build/glib/libglib-2.0-0.dll
- _build/gio/libgio-2.0-0.dll
- _build/gmodule/libgmodule-2.0-0.dll
@@ -362,7 +355,6 @@ vs2017-x64-static:
expire_in: 1 week
paths:
- _build/meson-logs
- - "_build/${env:CI_JOB_NAME}-report.xml"
freebsd-12-x86_64:
# The FreeBSD 13 build is run on each commit, so the FreeBSD 12 build can be
@@ -408,7 +400,6 @@ freebsd-12-x86_64:
- "_build/config.h"
- "_build/glib/glibconfig.h"
- "_build/meson-logs"
- - "_build/${CI_JOB_NAME}-report.xml"
freebsd-13-x86_64:
extends: .only-origin
@@ -436,7 +427,6 @@ freebsd-13-x86_64:
- "_build/config.h"
- "_build/glib/glibconfig.h"
- "_build/meson-logs"
- - "_build/${CI_JOB_NAME}-report.xml"
macos:
# FIXME: Temporarily disabled as the worker is offline
@@ -474,7 +464,6 @@ macos:
- "_build/config.h"
- "_build/glib/glibconfig.h"
- "_build/meson-logs"
- - "_build/${CI_JOB_NAME}-report.xml"
coverage:
extends: .only-default
diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh
index 52461ca10..86402dcaf 100755
--- a/.gitlab-ci/run-tests.sh
+++ b/.gitlab-ci/run-tests.sh
@@ -1,23 +1,7 @@
#!/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=$?
-
-exit $exit_code