2018-06-01 20:10:09 +00:00
|
|
|
[tox]
|
|
|
|
envlist =
|
|
|
|
coverage
|
|
|
|
flake8
|
|
|
|
recreate = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
basepython = python3
|
|
|
|
setenv =
|
2018-06-13 00:55:58 +00:00
|
|
|
SUBIQUITY_NO_I18N = 1
|
2018-06-01 20:10:09 +00:00
|
|
|
FAKE_TRANSLATE = always
|
|
|
|
PYTHONPATH = {toxinidir}/fake_deps
|
|
|
|
|
|
|
|
deps =
|
|
|
|
urwid==1.2.1
|
|
|
|
PyYAML
|
|
|
|
attrs
|
|
|
|
jsonschema
|
|
|
|
pyudev
|
|
|
|
requests
|
|
|
|
requests-unixsocket
|
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
deps =
|
|
|
|
flake8==3.5.0
|
|
|
|
pycodestyle==2.3.1
|
|
|
|
pyflakes==1.6.0
|
|
|
|
|
|
|
|
commands = {envpython} -m flake8 \
|
2018-06-05 20:38:28 +00:00
|
|
|
{posargs:console_conf/ subiquity/ subiquitycore/}
|
2018-06-01 20:10:09 +00:00
|
|
|
|
|
|
|
[testenv:py3]
|
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
nose
|
|
|
|
commands = {envpython} -m nose \
|
2018-06-05 20:38:28 +00:00
|
|
|
{posargs:console_conf/ subiquity/ subiquitycore/}
|
2018-06-01 20:10:09 +00:00
|
|
|
|
|
|
|
[testenv:coverage]
|
|
|
|
deps = {[testenv:py3]deps}
|
|
|
|
nose-timer
|
|
|
|
coverage
|
|
|
|
commands = {envpython} -m nose \
|
|
|
|
--with-timer --timer-top-n 10 \
|
|
|
|
--with-coverage --cover-erase --cover-branches --cover-inclusive \
|
|
|
|
--cover-package=subiquity --cover-package=subiquitycore \
|
2018-06-05 20:38:28 +00:00
|
|
|
{posargs:console_conf subiquity/ subiquitycore/}
|