197a2de8a7
The sdist target is useless given that releases are automated. Similarly, the '[testenv] install_command' uses the default value and is therefore not required. Finally, some other things were slightly off or otherwise annoying and can be fixed. Change-Id: Ia029aba9ee5bc79cf39043a5fcaf9463aa1518f7 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
31 lines
703 B
INI
31 lines
703 B
INI
[tox]
|
|
envlist = pep8,docs,py27,py3{4,5,6,7}
|
|
|
|
[testenv]
|
|
commands =
|
|
python -m git_review.tests.check_test_id_hashes discover --list
|
|
python -m git_review.tests.prepare
|
|
python setup.py testr --slowest --testr-args='--concurrency=2 {posargs}'
|
|
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
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
|
|
show-source = True
|
|
exclude = .venv,.git,.tox,dist,doc,releasenotes,*lib/python*,*egg,build
|