Skip to content

Commit

Permalink
Fix Travis CI pytest coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jnm committed Feb 20, 2018
1 parent 9f418f6 commit 50a64f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[run]
source =
hub
kpi
kobo
omit =
*/tests/*
*/migrations/*
*/management/commands/*
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ before_script:
script:
- gulp copy
- npm run build
- coverage run --source='hub,kpi,kobo' --omit='*/tests/*,*/migrations/*,*/management/commands/*' pytest
- pytest -vv
- npm run test
after_script:
- coverage xml && python-codacy-coverage -r coverage.xml
Expand Down Expand Up @@ -54,4 +54,4 @@ install:
- pip install --upgrade 'pip>=8.0' wheel
- pip install pip-tools
- pip-sync dependencies/pip/requirements.txt
- pip install coverage codacy-coverage python-coveralls
- pip install coverage codacy-coverage python-coveralls pytest-cov

0 comments on commit 50a64f1

Please sign in to comment.