Commit 57b4d01c authored by Michal Čihař's avatar Michal Čihař

Move coverage settings to separate file

parent f177e221
[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
...@@ -68,7 +68,7 @@ script: ...@@ -68,7 +68,7 @@ script:
- ./manage.py validate --settings weblate.settings_test_$DATABASE - ./manage.py validate --settings weblate.settings_test_$DATABASE
- ./manage.py syncdb --noinput --settings weblate.settings_test_$DATABASE - ./manage.py syncdb --noinput --settings weblate.settings_test_$DATABASE
- ./manage.py migrate --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 - pep8 --exclude migrations accounts trans lang
after_success: after_success:
- coveralls - coveralls
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment