promenade/tox.ini
Mark Burnett e82fd04ff1 Gate: Add publishing metadata for JUNit files
Includes:

* JSON-schema to validate gate manifests.
* `tox -e gate-lint` job to check gate manifests.
* More robust handling of conformance test results.
* Bufix in `tools/g2/lib/kube.sh` where a missing `fail` method was
  called.

Change-Id: I90740f659a691cb6ee92144205976ef97133f7bf
2017-10-31 10:38:23 -05:00

50 lines
870 B
INI

[tox]
envlist = bandit,lint
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv=
PYTHONWARNING=all
commands=
pytest \
{posargs}
[testenv:bandit]
deps = bandit
commands =
bandit -r promenade
[testenv:docs]
whitelist_externals=rm
commands =
rm -rf docs/build
python setup.py build_sphinx {posargs}
[testenv:fmt]
deps = yapf
commands =
yapf -ir {toxinidir}/promenade
[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
whitelist_externals = sh
commands =
{toxinidir}/tools/lint_gate.sh
[testenv:lint]
deps =
yapf
flake8
commands =
yapf -rd {toxinidir}/promenade
flake8 {toxinidir}/promenade