diff options
| author | Matthew Poletiek <matthew.poletiek@gmail.com> | 2020-12-08 21:03:16 -0600 |
|---|---|---|
| committer | Matthew Poletiek <matthew.poletiek@gmail.com> | 2020-12-08 21:03:16 -0600 |
| commit | e99416456afd4aa8bde42016826f9a345291cbf3 (patch) | |
| tree | a7a95639cd1cb5dbe2d91a2ca8e8defafac4296d /tox.ini | |
| parent | 194cf4e5e0b6a2811103a9b739a72b9afe2b886c (diff) | |
| download | chirp-e99416456afd4aa8bde42016826f9a345291cbf3.tar.gz chirp-e99416456afd4aa8bde42016826f9a345291cbf3.tar.xz | |
Initial Commit
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 61 |
1 files changed, 61 insertions, 0 deletions
@@ -0,0 +1,61 @@ +[tox] +envlist = unit,driver,style,py3clean,py3unit,py3driver +skipsdist = True + +[testenv] +basepython = python2.7 +sitepackages = True +passenv = HOME +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] +deps = + pep8==1.6.2 + future +commands = + python ./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} |
