From 094f2675c1af487ca650bf74f1b94bbdd48bb5ae Mon Sep 17 00:00:00 2001
From: Erwan Rouchet <rouchet@teklia.com>
Date: Mon, 18 Jan 2021 13:44:29 +0100
Subject: [PATCH] Send test reports to GitLab

---
 .gitlab-ci.yml               | 6 ++++++
 arkindex/project/settings.py | 1 +
 2 files changed, 7 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c18a858edf..b34e7aeca4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,6 +55,12 @@ backend-tests:
     - name: postgis/postgis:12-3.0
       alias: postgres
 
+  artifacts:
+    when: always
+    reports:
+      junit:
+        - nosetests.xml
+
   script:
     - python3 setup.py test
     - codecov
diff --git a/arkindex/project/settings.py b/arkindex/project/settings.py
index f95290e872..dc5ce3230f 100644
--- a/arkindex/project/settings.py
+++ b/arkindex/project/settings.py
@@ -499,6 +499,7 @@ try:
     NOSE_ARGS = [
         '--with-coverage',
         '--cover-package=arkindex',
+        '--with-xunit',
     ]
 except ImportError:
     pass
-- 
GitLab