From fa447fc643360bee60487c14c2136c3d1ad927ef Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Sat, 23 Mar 2024 14:59:14 +0100 Subject: [PATCH] Upload unit test log to gitlab artifacts for easier debugging. --- gitlab/unit-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitlab/unit-tests.sh b/gitlab/unit-tests.sh index 579af80f1d..6713d5d60b 100755 --- a/gitlab/unit-tests.sh +++ b/gitlab/unit-tests.sh @@ -59,6 +59,8 @@ if [ $UNITSUCCESS -eq 0 ]; then else STATE=failure fi +cp webapp/var/log/test.log "$GITLABARTIFACTS"/test.log + curl https://api.github.com/repos/domjudge/domjudge/statuses/$CI_COMMIT_SHA \ -X POST \ -H "Authorization: token $GH_BOT_TOKEN_OBSCURED" \