Merge pull request #3481 from nryoung/fix-codecov

Fix codecov on Travis CI
This commit is contained in:
Tom Christie 2015-10-08 19:47:33 +01:00
commit 85cd717ec0
2 changed files with 6 additions and 2 deletions

View File

@ -31,4 +31,4 @@ script:
after_success: after_success:
- pip install codecov - pip install codecov
- codecov - codecov -e TOX_ENV

View File

@ -93,7 +93,11 @@ if __name__ == "__main__":
except ValueError: except ValueError:
pass pass
else: else:
pytest_args = ['--cov', 'rest_framework'] + pytest_args pytest_args = [
'--cov-report',
'xml',
'--cov',
'rest_framework'] + pytest_args
if first_arg.startswith('-'): if first_arg.startswith('-'):
# `runtests.py [flags]` # `runtests.py [flags]`