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

Merge branch 'coverage-support' into 'master'

Add coverage reporting for single-package builds

See merge request !152
parents 640058e5 c32de0a7
No related branches found
No related tags found
1 merge request!152Add coverage reporting for single-package builds
Pipeline #39160 passed
......@@ -39,6 +39,8 @@ stages:
- bdt ci clean -vv
artifacts:
expire_in: 1 week
reports:
cobertura: coverage.xml
.build_linux_template:
......
......@@ -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
......
......@@ -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]
......
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