Skip to content

Commit

Permalink
Add codecov code coverage
Browse files Browse the repository at this point in the history
Closes #110
  • Loading branch information
divyam3897 committed Oct 17, 2017
1 parent d31056a commit 9661462
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
branch = True
omit = site-packages
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ script:
- python manage.py migrate
- python manage.py collectstatic
- python manage.py test
- nosetests --with-coverage
after_success:
- codecov
26 changes: 26 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
codecov:
notify:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"

status:
project: yes
patch: yes
changes: no

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: "reach, diff, flags, files, footer"
behavior: default
require_changes: no
13 changes: 13 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
certifi==2017.7.27.1
chardet==3.0.4
codecov==2.0.9
coverage==4.4.1
dj-database-url==0.4.2
Django==1.11.5
gunicorn==19.7.1
idna==2.6
nose==1.3.7
nose2==0.6.5
psycopg2==2.7.3.1
py==1.4.34
pytz==2017.2
pytest==3.2.3
pytest-cov==2.5.1
requests==2.18.4
six==1.11.0
urllib3==1.22
whitenoise==3.3.1

0 comments on commit 9661462

Please sign in to comment.