Skip to content

Commit

Permalink
Move coverage settings to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Aug 21, 2013
1 parent f177e22 commit 57b4d01
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[run]
branch = True
omit =
*migrations*

[paths]
source = .

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

ignore_errors = True

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ script:
- ./manage.py validate --settings weblate.settings_test_$DATABASE
- ./manage.py syncdb --noinput --settings weblate.settings_test_$DATABASE
- ./manage.py migrate --settings weblate.settings_test_$DATABASE
- coverage run --branch --omit '*/migrations/*' --source=. ./manage.py test --settings weblate.settings_test_$DATABASE trans lang accounts
- coverage run --source=. ./manage.py test --settings weblate.settings_test_$DATABASE trans lang accounts
- pep8 --exclude migrations accounts trans lang
after_success:
- coveralls
Expand Down

0 comments on commit 57b4d01

Please sign in to comment.