
* Also adds liveness and readiness probes for Prom deployment Change-Id: Id65d1e555e14478f2439c14dd6d6d7952411256d
55 lines
1.0 KiB
INI
55 lines
1.0 KiB
INI
[tox]
|
|
envlist = lint,unit,bandit,docs
|
|
|
|
[testenv]
|
|
basepython=python3
|
|
|
|
[testenv:unit]
|
|
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
|
|
commands =
|
|
rm -rf docs/build
|
|
python setup.py build_sphinx {posargs}
|
|
|
|
[testenv:fmt]
|
|
deps = yapf==0.20.0
|
|
commands =
|
|
yapf -ir {toxinidir}/promenade {toxinidir}/tests
|
|
|
|
[testenv:freeze]
|
|
deps = -r{toxinidir}/requirements-direct.txt
|
|
recreate = True
|
|
whitelist_externals = sh
|
|
commands=
|
|
sh -c "pip freeze | grep -v '^promenade' > {toxinidir}/requirements-frozen.txt"
|
|
|
|
[testenv:gate-lint]
|
|
deps =
|
|
jsonschema==2.6.0
|
|
whitelist_externals = sh
|
|
commands =
|
|
{toxinidir}/tools/lint_gate.sh
|
|
|
|
[testenv:lint]
|
|
deps =
|
|
yapf==0.20.0
|
|
flake8==3.5.0
|
|
commands =
|
|
yapf -rd {toxinidir}/promenade {toxinidir}/tests
|
|
flake8 {toxinidir}/promenade
|