mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
commit
51e520547b
1 changed files with 54 additions and 0 deletions
54
tox.ini
Normal file
54
tox.ini
Normal file
|
@ -0,0 +1,54 @@
|
|||
; a generative tox configuration, see: https://tox.readthedocs.io/en/latest/config.html#generative-envlist
|
||||
|
||||
[tox]
|
||||
envlist =
|
||||
clean,
|
||||
check,
|
||||
{py27, py35, py36, py37},
|
||||
report
|
||||
|
||||
[testenv]
|
||||
basepython =
|
||||
py27: {env:TOXPYTHON:python2.7}
|
||||
py35: {env:TOXPYTHON:python3.5}
|
||||
py36: {env:TOXPYTHON:python3.6}
|
||||
py37: {env:TOXPYTHON:python3.7}
|
||||
{clean,check,report,codecov}: {env:TOXPYTHON:python3}
|
||||
setenv =
|
||||
PYTHONPATH={toxinidir}/tests
|
||||
PYTHONUNBUFFERED=yes
|
||||
passenv =
|
||||
*
|
||||
usedevelop = false
|
||||
skip_install = true
|
||||
deps =
|
||||
pytest
|
||||
pytest-travis-fold
|
||||
pytest-cov
|
||||
pywin32 ; sys.platform == 'win32'
|
||||
commands =
|
||||
{posargs:pytest --cov --cov-report=term-missing tests}
|
||||
|
||||
[coverage:run]
|
||||
omit =
|
||||
libs/*
|
||||
|
||||
[testenv:codecov]
|
||||
deps =
|
||||
codecov
|
||||
skip_install = true
|
||||
commands =
|
||||
coverage xml --ignore-errors
|
||||
codecov []
|
||||
|
||||
[testenv:report]
|
||||
deps = coverage
|
||||
skip_install = true
|
||||
commands =
|
||||
coverage report
|
||||
coverage html
|
||||
|
||||
[testenv:clean]
|
||||
commands = coverage erase
|
||||
skip_install = true
|
||||
deps = coverage
|
Loading…
Add table
Add a link
Reference in a new issue