Skip to content

Commit

Permalink
boilerplate: Setup codecov with pytest.
Browse files Browse the repository at this point in the history
  • Loading branch information
dguitarbite committed Dec 13, 2016
1 parent e4a3485 commit 2901d4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ env:
install: pip install -U tox
script: tox -e ${TOXENV}
after_success:
- bash <(curl -s https://codecov.io/bash)
- pip install codecov
- codecov -e TOXENV TRAVIS_OS_NAME
2 changes: 2 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ pylint-common==0.2.2
fluff==0.1.1
pylint-mccabe==0.1.3
pylint-runner==0.3
pytest-cov
pytest-mock
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ deps =
-r{toxinidir}/requirements_dev.txt
commands =
pip install -U pip
sudo {envpython} -m pytest --basetemp={envtmpdir}
sudo {envpython} -m pytest --cov=libvirt_provider --cov-report=term --cov-report=html --basetemp={envtmpdir}

[testenv:pylint]
# Does not run by default for the time being.
Expand Down

0 comments on commit 2901d4a

Please sign in to comment.