chirp/tox.ini

64 lines
1.1 KiB
INI
Raw Normal View History

[tox]
envlist = unit,driver,style,py3clean,py3unit,py3driver
skipsdist = True
[testenv]
basepython = python2.7
sitepackages = True
passenv = HOME CHIRP_TESTS CHIRP_TESTIMG
whitelist_externals = bash
deps = future
[testenv:unit]
deps =
pytest
mox
mock
future
pytest-xdist
commands =
pytest --disable-warnings -v tests/unit {posargs}
python ./share/make_supported.py /dev/null
[testenv:driver]
deps =
future
pytest
pytest-xdist
commands =
pytest --disable-warnings -v tests/test_drivers.py {posargs}
[testenv:style]
2022-09-09 15:09:37 +00:00
basepython = python3
sitepackages = False
deps =
2022-09-09 15:09:37 +00:00
pep8
future
commands =
2022-09-09 15:09:37 +00:00
python3 ./tools/cpep8.py
[textenv:py3clean]
commands =
py3clean chirp tests
[testenv:py3unit]
basepython = python3
sitepackages = False
setenv =
PYTHONPATH=../..
deps =
-rrequirements.txt
-rtest-requirements.txt
commands =
pytest --disable-warnings -v tests/unit {posargs}
[testenv:py3driver]
basepython = python3
sitepackages = False
setenv =
PYTHONPATH=../..
CHIRP_DEBUG=y
deps = {[testenv:py3unit]deps}
commands =
pytest --disable-warnings -v tests/test_drivers.py {posargs}