Skip to content

Commit

Permalink
Use pytest-cov to generare .coverage file for coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
nhandler committed Nov 17, 2015
1 parent a608b97 commit 7e8b588
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags
venv
.bash_history
.lesshst
.coverage

# Generated debian artifacts
debian/paasta-tools/
Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ sudo: required
services:
- docker
install:
- pip install coveralls
- pip install tox
before_script:
- tox -e py
script:
- tox -e $TOX_ENV
after_success:
- coveralls
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ deps =
pep8==1.5.7
flake8
pytest==2.7.3
pytest-cov
mock==1.0.1
commands =
flake8 paasta_tools tests general_itests paasta_itests
py.test -s {posargs:tests}
py.test --cov=paasta_tools --cov-report=term -s {posargs:tests}

[testenv:docs]
deps =
Expand Down

0 comments on commit 7e8b588

Please sign in to comment.