From a58fa78d2914c6fa07cd06a8e63af829e29192e6 Mon Sep 17 00:00:00 2001
From: "Patrick L.S. Connor" <connorpa@mail.desy.de>
Date: Fri, 19 Jul 2024 10:13:17 +0200
Subject: [PATCH] separate test reports for Darwin and Core

---
 .gitlab-ci.yml | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 270e1cb..4ee5a19 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,14 +9,17 @@ LCG:
         - source /cvmfs/sft.cern.ch/lcg/views/LCG_104/x86_64-el9-gcc13-opt/setup.sh
         - ./install.sh
         - source tools/setup.sh
-        - (cd Darwin.build; ctest --output-junit ../test_report.xml)
-        - (cd Core.build; ctest --output-junit ../test_report.xml)
+        - ctest --test-dir Darwin.build --output-junit Darwin_test_report.xml
+        - ctest --test-dir Core.build --output-junit Core_test_report.xml
     artifacts:
       when: always
       paths:
-        - test_report.xml
+        - Darwin_test_report.xml
+        - Core_test_report.xml
       reports:
-        junit: test_report.xml
+        junit:
+        - Darwin_test_report.xml
+        - Core_test_report.xml
 
 micromamba:
     stage: build
@@ -28,11 +31,14 @@ micromamba:
         - micromamba activate DAS
         - ./install.sh
         - source tools/setup.sh
-        - (cd Darwin.build; ctest --output-junit ../test_report.xml)
-        - (cd Core.build; ctest --output-junit ../test_report.xml)
+        - ctest --test-dir Darwin.build --output-junit Darwin_test_report.xml
+        - ctest --test-dir Core.build --output-junit Core_test_report.xml
     artifacts:
       when: always
       paths:
-        - test_report.xml
+        - Darwin_test_report.xml
+        - Core_test_report.xml
       reports:
-        junit: test_report.xml
+        junit:
+        - Darwin_test_report.xml
+        - Core_test_report.xml
-- 
GitLab