4af1703a90
Change-Id: I0e7b370348e4a350d4e2fdc11bc57c3746f15267
43 lines
1.0 KiB
INI
43 lines
1.0 KiB
INI
[tox]
|
|
envlist = linters,docs,py3{5,6,7,8}
|
|
ignore_basepython_conflict = true
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
# See "testing behind a proxy"
|
|
# @ https://review.openstack.org/#/q/I764ed51314c8e2d0572d1f0
|
|
passenv =
|
|
http_proxy
|
|
https_proxy
|
|
# avoids potential slip-over of java 1.9 which breaks Gerrit, without it
|
|
# Gerrit may start with incompatible java version.
|
|
JAVA_HOME
|
|
# uncomment to allow custom java options to be added
|
|
# _JAVA_OPTIONS
|
|
TERM
|
|
commands =
|
|
python -m git_review.tests.check_test_id_hashes discover --list
|
|
python -m git_review.tests.prepare
|
|
stestr run --color {posargs}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:linters]
|
|
commands = flake8
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore = E125,H202,H405,H904,W504
|
|
show-source = true
|
|
exclude = .venv,.git,.tox,dist,doc,releasenotes,*lib/python*,*egg,build
|