2013-06-30 14:06:53 -04:00
|
|
|
[tox]
|
2017-01-05 14:52:07 +00:00
|
|
|
envlist = py35,py27,pep8
|
2013-06-30 14:06:53 -04:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
LANG=en_US.UTF-8
|
|
|
|
LANGUAGE=en_US:en
|
|
|
|
LC_ALL=C
|
2017-01-05 14:52:07 +00:00
|
|
|
TESTS_DIR=./pyghmi/tests/unit/
|
2013-06-30 14:06:53 -04:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2017-01-05 14:52:07 +00:00
|
|
|
commands = ostestr {posargs}
|
2013-06-30 14:06:53 -04:00
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
sitepackages = True
|
|
|
|
|
|
|
|
[testenv:pep8]
|
2018-06-09 20:39:17 +08:00
|
|
|
basepython = python3
|
2014-12-31 00:13:08 +00:00
|
|
|
whitelist_externals = bash
|
2018-05-08 14:23:42 -04:00
|
|
|
commands = bash -c 'pycodestyle pyghmi bin/*'
|
2013-06-30 14:06:53 -04:00
|
|
|
|
|
|
|
[testenv:cover]
|
2018-06-09 20:39:17 +08:00
|
|
|
basepython = python3
|
2013-06-30 14:06:53 -04:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands =
|
|
|
|
python setup.py testr --coverage
|
|
|
|
|
|
|
|
[testenv:venv]
|
2018-06-09 20:39:17 +08:00
|
|
|
basepython = python3
|
2013-06-30 14:06:53 -04:00
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
exclude = .venv,.tox,dist,doc,*.egg,build
|
|
|
|
show-source = true
|
2018-05-08 14:23:42 -04:00
|
|
|
|
|
|
|
[pep8]
|
|
|
|
ignore = E731,E226,E123
|
2018-05-16 15:18:13 +02:00
|
|
|
|
|
|
|
[testenv:lower-constraints]
|
|
|
|
basepython = python3
|
|
|
|
deps =
|
|
|
|
-c{toxinidir}/lower-constraints.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
-r{toxinidir}/requirements.txt
|