From c32de0a71966136816e2221486573408ab974aa3 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Fri, 24 Apr 2020 10:11:45 +0200
Subject: [PATCH] [templates] Adjust templates to produce both HTML and XML
 reports; Point README coverage badge to coverage report

---
 bob/devtools/templates/README.rst      | 2 +-
 bob/devtools/templates/conda/meta.yaml | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/bob/devtools/templates/README.rst b/bob/devtools/templates/README.rst
index 466e50a3..0cd39a99 100644
--- a/bob/devtools/templates/README.rst
+++ b/bob/devtools/templates/README.rst
@@ -7,7 +7,7 @@
 .. image:: https://gitlab.idiap.ch/{{ package }}/badges/master/build.svg
    :target: https://gitlab.idiap.ch/{{ package }}/commits/master
 .. image:: https://gitlab.idiap.ch/{{ package }}/badges/master/coverage.svg
-   :target: https://gitlab.idiap.ch/{{ package }}/commits/master
+   :target: https://www.idiap.ch/software/bob/docs/{{ package }}/master/coverage/index.html
 .. image:: https://img.shields.io/badge/gitlab-project-0000c0.svg
    :target: https://gitlab.idiap.ch/{{ package }}
 .. image:: https://img.shields.io/pypi/v/{{ name }}.svg
diff --git a/bob/devtools/templates/conda/meta.yaml b/bob/devtools/templates/conda/meta.yaml
index 575b6997..55925da6 100644
--- a/bob/devtools/templates/conda/meta.yaml
+++ b/bob/devtools/templates/conda/meta.yaml
@@ -36,8 +36,7 @@ test:
   imports:
     - {{ name }}
   commands:
-    # test commands ("script" entry-points) from your package here
-    - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
+    - nosetests --with-coverage --cover-package={{ name }} --cover-erase --cover-html-dir={{ project_dir }}/sphinx/coverage --cover-xml-file={{ project_dir }}/coverage.xml -sv {{ name }}
     - sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
     - sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
     - conda inspect linkages -p $PREFIX {{ name }}  # [not win]
-- 
GitLab