Skip to content

Commit

Permalink
Added coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
bashu committed Mar 30, 2019
1 parent 95fdabd commit 16e2561
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
omit = */migrations/*,*__init__*
source = maintenancemode

[report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
# -*- coding: utf-8 -*-
pass
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
- DJANGO="Django>=1.11,<1.12"
- DJANGO="https://github.com/django/django/archive/master.tar.gz"
before_install:
- pip install -q $DJANGO
- pip install -q $DJANGO coveralls
install:
- python setup.py develop
script:
Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Authored by `Remco Wendt <https://github.com/shanx>`_, and some great `contribut
.. image:: https://img.shields.io/travis/shanx/django-maintenancemode.svg
:target: https://travis-ci.org/shanx/django-maintenancemode/

.. image:: https://coveralls.io/repos/github/shanx/django-maintenancemode/badge.svg?branch=develop
:target: https://coveralls.io/github/shanx/django-maintenancemode?branch=develop

How it works
------------

Expand Down
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ def find_version(*parts):
'django-appconf',
'ipy',
],
requires=[
'Django (>=1.4.2)',
],

description="django-maintenancemode allows you to temporary shutdown your site for maintenance work",
long_description=read('README.rst') + '\n\n' + read('CHANGES.rst'),
Expand Down

0 comments on commit 16e2561

Please sign in to comment.