5c145f1ba5
Some OpenStack CI jobs need the venv tox environment to run, add it. Change-Id: I4022c360aa8b64544014708bc55927e75dbc8164
68 lines
1.4 KiB
INI
68 lines
1.4 KiB
INI
[tox]
|
|
envlist = pep8,py35,bandit,docs
|
|
|
|
[testenv]
|
|
basepython=python3
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:py35]
|
|
setenv =
|
|
PYTHONWARNING=all
|
|
deps = -r{toxinidir}/requirements-frozen.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
pytest {posargs}
|
|
|
|
[testenv:py36]
|
|
setenv =
|
|
PYTHONWARNING=all
|
|
deps = -r{toxinidir}/requirements-frozen.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
pytest {posargs}
|
|
|
|
[testenv:bandit]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
bandit -r promenade
|
|
|
|
[testenv:docs]
|
|
whitelist_externals = rm
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
rm -rf doc/build
|
|
sphinx-build -b html doc/source doc/build
|
|
|
|
[testenv:fmt]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
yapf -ir {toxinidir}/promenade {toxinidir}/tests {toxinidir}/tools/image_tags.py
|
|
|
|
[testenv:freeze]
|
|
deps = -r{toxinidir}/requirements-direct.txt
|
|
recreate = True
|
|
whitelist_externals = sh
|
|
grep
|
|
commands=
|
|
sh -c "pip freeze | grep -vE '^(promenade)|(pkg-resources)' > {toxinidir}/requirements-frozen.txt"
|
|
|
|
[testenv:gate-lint]
|
|
deps =
|
|
jsonschema==2.6.0
|
|
whitelist_externals = sh
|
|
commands =
|
|
{toxinidir}/tools/lint_gate.sh
|
|
|
|
[testenv:pep8]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
flake8 {toxinidir}/promenade
|
|
bandit -r promenade
|