Skip to content
Snippets Groups Projects
Commit c32de0a7 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[templates] Adjust templates to produce both HTML and XML reports; Point...

[templates] Adjust templates to produce both HTML and XML reports; Point README coverage badge to coverage report
parent 4fbdcc92
No related branches found
No related tags found
1 merge request!152Add coverage reporting for single-package builds
Pipeline #39157 passed
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
.. image:: https://gitlab.idiap.ch/{{ package }}/badges/master/build.svg .. image:: https://gitlab.idiap.ch/{{ package }}/badges/master/build.svg
:target: https://gitlab.idiap.ch/{{ package }}/commits/master :target: https://gitlab.idiap.ch/{{ package }}/commits/master
.. image:: https://gitlab.idiap.ch/{{ package }}/badges/master/coverage.svg .. 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 .. image:: https://img.shields.io/badge/gitlab-project-0000c0.svg
:target: https://gitlab.idiap.ch/{{ package }} :target: https://gitlab.idiap.ch/{{ package }}
.. image:: https://img.shields.io/pypi/v/{{ name }}.svg .. image:: https://img.shields.io/pypi/v/{{ name }}.svg
......
...@@ -36,8 +36,7 @@ test: ...@@ -36,8 +36,7 @@ test:
imports: imports:
- {{ name }} - {{ name }}
commands: commands:
# test commands ("script" entry-points) from your package here - nosetests --with-coverage --cover-package={{ name }} --cover-erase --cover-html-dir={{ project_dir }}/sphinx/coverage --cover-xml-file={{ project_dir }}/coverage.xml -sv {{ name }}
- nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
- sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx - sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx - sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win] - conda inspect linkages -p $PREFIX {{ name }} # [not win]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment