Skip to content

Commit

Permalink
Ensure codecov evaluates coverage against payload files only (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
webyneter authored Jun 27, 2017
1 parent 8e888c5 commit d38b4a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ install: pip install -U tox-travis
language: python
python:
- 3.5
script: tox
script: tox -e codecov
after_success:
- codecov
16 changes: 8 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ python =
[testenv]
setenv =
PYTHONPATH = {toxinidir}
passenv =
CI TRAVIS TRAVIS_*
deps =
-r{toxinidir}/requirements/test.txt
commands =
pip install -U pip
py.test --basetemp={envtmpdir} --cov={toxinidir}
codecov
py.test --basetemp={envtmpdir}

[testenv:flake8]
basepython = python
deps =
flake8
commands =
flake8 python_humble_utils

[testenv:codecov]
passenv =
CI TRAVIS TRAVIS_*
commands =
py.test --basetemp={envtmpdir} --cov={toxinidir}/python_humble_utils
codecov

0 comments on commit d38b4a3

Please sign in to comment.