watcher-specs/tox.ini
Vu Cong Tuan c3bee4928f Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Icb8426985ea156ed8b5f4dd454ed8457c11ec2a0
2018-07-10 11:22:34 +07:00

37 lines
824 B
INI

[tox]
# Hold back to 1.4, since that's what's in Fedora 20 repos
# and we don't need anything newer for watcher-specs tests
minversion = 1.4
envlist = docs,py27,pep8
skipsdist = True
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
stestr run --slowest {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
setenv = PYTHONHASHSEED=0
commands =
find . -type f -name "*.pyc" -delete
doc8 doc/source/ README.rst
python setup.py build_sphinx
[testenv:pep8]
deps = -r{toxinidir}/test-requirements.txt
commands =
doc8 doc/source/ README.rst
flake8 {posargs}
[flake8]
ignore = E128
exclude = .venv,.git,.tox,doc,.eggs