Skip to content

Commit

Permalink
Migrate to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
vint21h committed Nov 16, 2019
1 parent 5b38dd5 commit ceca357
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ static/*
.credentials
.env
.coverage
coverage.xml
Pipfile.lock
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TEST_PYPI_URL=https://test.pypi.org/legacy/
NAME=djversion
EXTENSIONS=py,html,txt
TRASH_DIRS=build dist *.egg-info .tox .mypy_cache __pycache__
TRASH_FILES=.coverage coverage.xml Pipfile.lock
TRASH_FILES=.coverage Pipfile.lock
BUILD_TYPES=bdist_wheel sdist
VERSION=`python -c "import configparser; config = configparser.ConfigParser(); config.read('setup.cfg'); print(config['metadata']['version']);"`

Expand Down Expand Up @@ -58,7 +58,8 @@ clean:
done;\

coverage:
coverage xml;\
coverage;\
coveralls;\

help:
@echo " help:"
Expand Down Expand Up @@ -88,4 +89,4 @@ help:
@echo " clean:"
@echo " Recursively delete useless autogenerated files and directories, directories and files list can be overriden through 'TRASH_DIRS' and 'TRASH_FILES' variables."
@echo " coverage:"
@echo " Generate coverage report."
@echo " Generate and upload coverage report to Coveralls."
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pygments = "==2.4.2"
pylint = "==2.4.4"
pylint-django = "==2.0.12"
pyroma = "==2.6"
python-coveralls = "==2.9.3"
readme_renderer = "==24.0"
rednose = "==1.3.0"
removestar = "==1.2.2"
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A django-project-version documentation
======================================

|Travis|_ |Coverage|_ |Requires|_ |pypi-license|_ |pypi-version|_ |pypi-python-version|_ |pypi-django-version|_ |pypi-format|_ |pypi-wheel|_ |pypi-status|_
|Travis|_ |Coveralls|_ |Requires|_ |pypi-license|_ |pypi-version|_ |pypi-python-version|_ |pypi-django-version|_ |pypi-format|_ |pypi-wheel|_ |pypi-status|_

*django-project-version is a Django reusable app to show your project version*

Expand Down Expand Up @@ -120,8 +120,8 @@ For other authors list see AUTHORS file.

.. |Travis| image:: https://travis-ci.org/DCOD-OpenSource/django-project-version.svg?branch=master
:alt: Travis
.. |Coverage| image:: https://api.codacy.com/project/badge/Coverage/458f771e39974f5981196d960627db92
:alt: Coverage
.. |Coveralls| image:: https://coveralls.io/repos/github/DCOD-OpenSource/django-project-version/badge.svg?branch=master
:alt: Coveralls
.. |Requires| image:: https://requires.io/github/DCOD-OpenSource/django-project-version/requirements.svg?branch=master
:alt: Requires
.. |pypi-license| image:: https://img.shields.io/pypi/l/django-project-version
Expand All @@ -139,7 +139,7 @@ For other authors list see AUTHORS file.
.. |pypi-status| image:: https://img.shields.io/pypi/status/django-project-version
:alt: Package status
.. _Travis: https://travis-ci.org/DCOD-OpenSource/django-project-version/
.. _Coverage: https://app.codacy.com/manual/DCOD/django-project-version/dashboard
.. _Coveralls: https://coveralls.io/github/DCOD-OpenSource/django-project-version?branch=master
.. _Requires: https://requires.io/github/DCOD-OpenSource/django-project-version/requirements/?branch=master
.. _pypi-license: https://pypi.org/project/django-project-version/
.. _pypi-version: https://pypi.org/project/django-project-version/
Expand Down
4 changes: 1 addition & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ test =
pylint-django==2.0.12
pylint==2.4.4
pyroma==2.6
python-coveralls==2.9.3
readme_renderer==24.0
rednose==1.3.0
removestar==1.2.2
Expand Down Expand Up @@ -162,9 +163,6 @@ exclude_lines =
pragma: no cover


[coverage:xml]


[isort]
balanced_wrapping = True
combine_as_imports = True
Expand Down

0 comments on commit ceca357

Please sign in to comment.