From 3880a200c35cc7b76583f467a199a1d6e866c9f5 Mon Sep 17 00:00:00 2001 From: Jonas Zohren Date: Sun, 18 Jul 2021 14:31:11 +0200 Subject: [PATCH] CI: Make JUnit export run, even if sytest itself failed --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 36b643c..d362a7e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,9 +55,10 @@ test:sytest: - "mkdir -p /work/server-0/database/ && mkdir -p /work/server-1/database/ && mkdir -p /work/server-2/database/" - "cd /" script: - - "/bootstrap.sh conduit" - after_script: - - "perl ./sytest/tap-to-junit-xml.pl --input /logs/results.tap --output /sytest.xml" + - "SYTEST_EXIT_CODE=0" + - "/bootstrap.sh conduit || SYTEST_EXIT_CODE=1" + - "perl /sytest/tap-to-junit-xml.pl --input /logs/results.tap --output /sytest.xml" + - "exit $SYTEST_EXIT_CODE" artifacts: when: always paths: