From 2c1b6c9400eeb02bc2e9156b779f8ee570a90ea0 Mon Sep 17 00:00:00 2001
From: Rainer Kartmann <rainer.kartmann@kit.edu>
Date: Fri, 4 Aug 2023 08:16:07 +0200
Subject: [PATCH] Test once with junit output (as with ArmarXCore), do not cat
 the (extremely long) test log

---
 .gitlab-ci.yml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6ae16d10f..cd2f9bd46 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -62,11 +62,7 @@ stages:
     # Test.
     # ToDo: Add and use `axii ws test -m simox`
     - cd "$PROJECT_PATH_IN_WORKSPACE/build"
-    - ctest . || true
-    - ctest --rerun-failed --output-on-failure . || true
-    - cat Testing/Temporary/LastTest.log || true
-    # Once again to make the job fail if an error occurs.
-    - ctest .
+    - ctest --output-on-failure --output-junit "$CI_PROJECT_DIR/report.xml" .
 
     # Generate documentation.
     - cd "$PROJECT_PATH_IN_WORKSPACE/build"
@@ -82,6 +78,9 @@ build-and-test-bionic:
   image: git.h2t.iar.kit.edu:5050/sw/armarx/meta/axii:latest-bionic
 
   artifacts:
+    reports:
+      junit: report.xml
+
     name: "Simox-Documentation-$CI_COMMIT_REF_NAME"
     paths:
       - build/doc/html/
-- 
GitLab