mirror of
https://github.com/kk7ds/chirp.git
synced 2024-09-21 10:37:15 +00:00
7a296bd85b
For speed. #0
53 lines
880 B
INI
53 lines
880 B
INI
[tox]
|
|
envlist = unit,driver,style,py3unit,py3driver
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python2.7
|
|
sitepackages = True
|
|
passenv = HOME
|
|
whitelist_externals = bash
|
|
|
|
[testenv:unit]
|
|
deps =
|
|
nose
|
|
mox
|
|
mock
|
|
future
|
|
commands =
|
|
nosetests -v tests/unit
|
|
python ./share/make_supported.py /dev/null
|
|
|
|
[testenv:driver]
|
|
deps =
|
|
future
|
|
commands =
|
|
python -munittest -vb tests
|
|
|
|
[testenv:style]
|
|
deps =
|
|
pep8==1.6.2
|
|
commands =
|
|
python ./tools/cpep8.py
|
|
|
|
[testenv:py3unit]
|
|
basepython = python3
|
|
sitepackages = False
|
|
setenv =
|
|
PYTHONPATH=../..
|
|
deps =
|
|
-rrequirements.txt
|
|
-rtest-requirements.txt
|
|
commands =
|
|
pytest --disable-warnings tests/unit
|
|
|
|
[testenv:py3driver]
|
|
basepython = python3
|
|
sitepackages = False
|
|
setenv =
|
|
PYTHONPATH=../..
|
|
CHIRP_DEBUG=y
|
|
deps = {[testenv:py3unit]deps}
|
|
commands =
|
|
python -munittest discover -vb -p {posargs:TestCase}
|