[tox]
minversion = 2.0
envlist =
- check-hooks,
coala,
docs,
docs-linkcheck,
license,
+ pre-commit,
py27,
py35,
py36,
deps = -r{toxinidir}/requirements-test.txt
commands = pytest
-[testenv:check-hooks]
-deps = pre-commit==1.11.2
-commands =
- pre-commit install
- pre-commit run --all-files
-
[testenv:coala]
basepython = python3
deps =
coala --non-interactive
[testenv:docs]
+basepython = python3
deps = -rrequirements-docs.txt
extras = openstack
commands =
sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
[testenv:docs-linkcheck]
+basepython = python3
deps = -rrequirements-docs.txt
extras = openstack
commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
[testenv:latest-upstream]
+basepython = python3
deps = -r{toxinidir}/requirements-test.txt
commands =
pip install -U python-jenkins requests shade
pytest
[testenv:license]
+basepython = python3
deps =
lftools
commands =
lftools license check-dir lftools
lftools license check-dir -r '.+' shell
+[testenv:pre-commit]
+basepython = python3
+deps = pre-commit
+commands =
+ pre-commit install
+ pre-commit run --all-files
+
[testenv:reno]
+basepython = python3
deps = reno
commands = reno {posargs:--help}