
This patch adds proxy-related variables to tox command. Change-Id: Ifa202936f5cd240978893e2ee280eb4f27fb0744
59 lines
1.3 KiB
INI
59 lines
1.3 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:py35]
|
|
setenv =
|
|
PYTHONWARNING=all
|
|
deps = -r{toxinidir}/requirements-frozen.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
pytest
|
|
|
|
[testenv:bandit]
|
|
deps = bandit==1.4.0
|
|
commands =
|
|
bandit -r promenade
|
|
|
|
[testenv:docs]
|
|
whitelist_externals = rm
|
|
deps =
|
|
sphinx>=1.6.2
|
|
sphinx_rtd_theme==0.2.4
|
|
-r{toxinidir}/requirements-frozen.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
rm -rf doc/build
|
|
sphinx-build -b html doc/source doc/build
|
|
|
|
[testenv:fmt]
|
|
deps = yapf==0.20.0
|
|
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 =
|
|
yapf==0.20.0
|
|
flake8==3.5.0
|
|
commands =
|
|
yapf -rd {toxinidir}/promenade {toxinidir}/tests {toxinidir}/tools/image_tags.py
|
|
flake8 {toxinidir}/promenade
|