f39cd8a9c3
Improve readability of pytest executions by producing html reports which are also advertised by zuul, saving user time. Change-Id: I306ad28c855c59f3d575da7a6132782ce02966d7
41 lines
977 B
INI
41 lines
977 B
INI
[tox]
|
|
envlist = linters, py27, py35, py36, py37
|
|
minversion = 3.4.0
|
|
ignore_basepython_conflict = True
|
|
skip_missing_interpreters = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
whitelist_externals =
|
|
bash
|
|
commands_pre =
|
|
pip install -q bindep
|
|
bindep test
|
|
commands =
|
|
python -m pytest --html={envlogdir}/reports.html --self-contained-html {posargs:--cov=emit_releases_file}
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:linters]
|
|
basepython = python3
|
|
commands =
|
|
python -m pre_commit run -a
|
|
|
|
# deprecated: use linters instead. kept only as a convenience alias
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
envdir = {toxworkdir}/linters
|
|
whitelist_externals = {[testenv]whitelist_externals}
|
|
commands = {[testenv:linters]commands}
|
|
|
|
[testenv:cireport]
|
|
basepython = python3
|
|
passenv =
|
|
SSH_AUTH_SOCK
|
|
commands = python scripts/tripleo-jobs-gerrit.py {posargs}
|