From fb6e71966da041d2291277cf5fa5d097d6c8aa05 Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Thu, 1 Oct 2020 19:54:17 -0400
Subject: [PATCH] Added test coverage reporting for gitlab.

---
 .gitlab-ci.yml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cc0d059f..c654654f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,6 +40,12 @@ test-nvidia-gpu:
     - clinfo
     - if [[ "$(clinfo | grep 'Device Type')" != *"GPU"* ]]; then exit -1; fi
     - mvn $MAVEN_CLI_OPTS test
+  artifacts:
+    when: always
+    reports:
+      junit:
+        - target/surefire-reports/TEST-*.xml
+        - target/failsafe-reports/TEST-*.xml
   tags:
     - opencl
 
@@ -50,6 +56,12 @@ test-nvidia-cpu:
     - clinfo
     - if [[ "$(clinfo | grep 'Device Type')" == *"GPU"* ]]; then exit -1; fi
     - mvn $MAVEN_CLI_OPTS test
+  artifacts:
+    when: always
+    reports:
+      junit:
+        - target/surefire-reports/TEST-*.xml
+        - target/failsafe-reports/TEST-*.xml
   tags:
     - compute
 
@@ -60,6 +72,12 @@ test-amdgpu-cpu:
     - clinfo
     - if [[ "$(clinfo | grep 'Device Type')" == *"GPU"* ]]; then exit -1; fi
     - mvn $MAVEN_CLI_OPTS test
+  artifacts:
+    when: always
+    reports:
+      junit:
+        - target/surefire-reports/TEST-*.xml
+        - target/failsafe-reports/TEST-*.xml
   tags:
     - compute
 
@@ -70,6 +88,12 @@ test-pocl-cpu:
     - clinfo
     - if [[ "$(clinfo | grep 'Device Type')" == *"GPU"* ]]; then exit -1; fi
     - mvn $MAVEN_CLI_OPTS test
+  artifacts:
+    when: always
+    reports:
+      junit:
+        - target/surefire-reports/TEST-*.xml
+        - target/failsafe-reports/TEST-*.xml
   tags:
     - compute
 
-- 
GitLab