Skip to content

Commit

Permalink
Fix codecov on Travis CI
Browse files Browse the repository at this point in the history
The coverage report needs to be explicitly created with arguments passed
in to pytest-cov
  • Loading branch information
nryoung committed Oct 8, 2015
1 parent 6fb96e9 commit 739d389
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -31,4 +31,4 @@ script:

after_success:
- pip install codecov
- codecov
- codecov -e TOX_ENV
6 changes: 5 additions & 1 deletion runtests.py
Expand Up @@ -93,7 +93,11 @@ def is_class(string):
except ValueError:
pass
else:
pytest_args = ['--cov', 'rest_framework'] + pytest_args
pytest_args = [
'--cov-report',
'xml',
'--cov',
'rest_framework'] + pytest_args

if first_arg.startswith('-'):
# `runtests.py [flags]`
Expand Down

0 comments on commit 739d389

Please sign in to comment.