forked from brendan-w/python-OBD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tox - test & coverage automation config script. Also playing w…
…ith travis CI pipelines.
- Loading branch information
Michał Kaczmarczyk
committed
Feb 26, 2019
1 parent
6bb6a4a
commit 722dd2c
Showing
3 changed files
with
109 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[tox] | ||
envlist = | ||
check{27,36}, | ||
py{27,py,34,35,36,37}, | ||
coverage | ||
|
||
|
||
[testenv] | ||
usedevelop = true | ||
setenv = | ||
COVERAGE_FILE={toxinidir}/.coverage_{envname} | ||
deps = | ||
pdbpp==0.9.6 | ||
pytest==3.10.1 | ||
pytest-cov==2.6.1 | ||
whitelist_externals = | ||
rm | ||
commands = | ||
rm -vf {toxinidir}/.coverage_{envname} | ||
pytest --cov-report= --cov=obd {posargs} | ||
|
||
[testenv:check27] | ||
basepython = python2.7 | ||
skipsdist = true | ||
deps = | ||
check-manifest==0.37 | ||
flake8==3.7.7 | ||
commands = | ||
flake8 {envsitepackagesdir}/obd | ||
python setup.py check --strict --metadata | ||
|
||
|
||
[testenv:check36] | ||
basepython = python3.6 | ||
skipsdist = true | ||
deps = {[testenv:check27]deps} | ||
commands = {[testenv:check27]commands} | ||
|
||
|
||
[testenv:coverage] | ||
skipsdist = true | ||
deps = | ||
coverage | ||
whitelist_externals = | ||
/bin/bash | ||
rm | ||
commands = | ||
/bin/bash -c 'coverage combine {toxinidir}/.coverage_*' | ||
coverage html -i | ||
coverage report -i --show-missing | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
|
||
|
||
[coverage:run] | ||
omit = | ||
.tox/* | ||
env/* | ||
|
||
[coverage:paths] | ||
source = | ||
obd/ |