From ceca357a25c2a4142a8e5eccfbf848af3a4a0d79 Mon Sep 17 00:00:00 2001 From: Alexei Andrushievich Date: Sat, 16 Nov 2019 16:49:41 +0200 Subject: [PATCH] Migrate to coveralls --- .gitignore | 1 - Makefile | 7 ++++--- Pipfile | 1 + README.rst | 8 ++++---- setup.cfg | 4 +--- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 5f71349..ba7dd16 100644 --- a/.gitignore +++ b/.gitignore @@ -43,5 +43,4 @@ static/* .credentials .env .coverage -coverage.xml Pipfile.lock diff --git a/Makefile b/Makefile index 9d95aff..33b50e4 100644 --- a/Makefile +++ b/Makefile @@ -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']);"` @@ -58,7 +58,8 @@ clean: done;\ coverage: - coverage xml;\ + coverage;\ + coveralls;\ help: @echo " help:" @@ -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." diff --git a/Pipfile b/Pipfile index 83ce5a4..961f9ce 100644 --- a/Pipfile +++ b/Pipfile @@ -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" diff --git a/README.rst b/README.rst index 6a4cdff..04e059b 100644 --- a/README.rst +++ b/README.rst @@ -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* @@ -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 @@ -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/ diff --git a/setup.cfg b/setup.cfg index 537c433..71f6299 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 @@ -162,9 +163,6 @@ exclude_lines = pragma: no cover -[coverage:xml] - - [isort] balanced_wrapping = True combine_as_imports = True