Skip to content

Commit 010f705

Browse files
committed
boilerplate: Setup codecov with pytest.
1 parent e4a3485 commit 010f705

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ env:
2525
install: pip install -U tox
2626
script: tox -e ${TOXENV}
2727
after_success:
28-
- bash <(curl -s https://codecov.io/bash)
28+
- pip install codecov
29+
- codecov -e TOXENV TRAVIS_OS_NAME

requirements_dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ pylint-common==0.2.2
1616
fluff==0.1.1
1717
pylint-mccabe==0.1.3
1818
pylint-runner==0.3
19+
pytest-cov
20+
pytest-mock

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ deps =
1616
-r{toxinidir}/requirements_dev.txt
1717
commands =
1818
pip install -U pip
19-
sudo {envpython} -m pytest --basetemp={envtmpdir}
19+
sudo {envpython} -m pytest --cov=libvirt_provider --cov-report=term --cov-report=html --basetemp={envtmpdir}
2020

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

0 commit comments

Comments
 (0)