promenade/tox.ini
Mark Burnett b9dceb2a9a Minor testing-related cleanup
* Move docs dependencies out of test-requirements.txt
* Eliminate python version specific test (py35)
* Re-order default envlist to shorten feedback cycle
* Minor whitespace changes
* Simplify versions unit test
* Add /.cache to .gitignore
* Include tests directory in basic format requirements, but not flake8
* Fix sample noauth-api-paste.ini config

Change-Id: I440f5c2d988098287f9914449f7103735f832192
2018-01-02 10:14:10 -06:00

52 lines
1010 B
INI

[tox]
envlist = lint,unit,bandit,docs
[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