diff --git a/bob/devtools/data/gitlab-ci/single-package.yaml b/bob/devtools/data/gitlab-ci/single-package.yaml index d82e6e2db4b5414a353fd4a0dc1ff00124b221c3..eee41cefe6b574dcfb847a6a56ce51de735052f4 100644 --- a/bob/devtools/data/gitlab-ci/single-package.yaml +++ b/bob/devtools/data/gitlab-ci/single-package.yaml @@ -39,6 +39,8 @@ stages: - bdt ci clean -vv artifacts: expire_in: 1 week + reports: + cobertura: coverage.xml .build_linux_template: diff --git a/bob/devtools/templates/README.rst b/bob/devtools/templates/README.rst index 466e50a3f65c7ee73f40e8f8eff784581c508e3b..0cd39a9958e9eb839eed5de7e86e3c3048f1d437 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 575b699784c46cdca1041b38fe7ef74c59cdbccd..55925da618cb79e4099857d404d0bad0eb0bcd7a 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]