Skip to content

Commit 16e2561

Browse files
committed
Added coverage badge
1 parent 95fdabd commit 16e2561

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.coveragerc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
omit = */migrations/*,*__init__*
3+
source = maintenancemode
4+
5+
[report]
6+
exclude_lines =
7+
pragma: no cover
8+
def __repr__
9+
raise AssertionError
10+
raise NotImplementedError
11+
if __name__ == .__main__.:
12+
# -*- coding: utf-8 -*-
13+
pass

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
- DJANGO="Django>=1.11,<1.12"
1616
- DJANGO="https://github.com/django/django/archive/master.tar.gz"
1717
before_install:
18-
- pip install -q $DJANGO
18+
- pip install -q $DJANGO coveralls
1919
install:
2020
- python setup.py develop
2121
script:

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Authored by `Remco Wendt <https://github.com/shanx>`_, and some great `contribut
2222
.. image:: https://img.shields.io/travis/shanx/django-maintenancemode.svg
2323
:target: https://travis-ci.org/shanx/django-maintenancemode/
2424

25+
.. image:: https://coveralls.io/repos/github/shanx/django-maintenancemode/badge.svg?branch=develop
26+
:target: https://coveralls.io/github/shanx/django-maintenancemode?branch=develop
27+
2528
How it works
2629
------------
2730

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ def find_version(*parts):
3030
'django-appconf',
3131
'ipy',
3232
],
33-
requires=[
34-
'Django (>=1.4.2)',
35-
],
3633

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

0 commit comments

Comments
 (0)