31 lines
786 B
INI
31 lines
786 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = docs,py27
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -U {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
whitelist_externals = find
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:doc8]
|
|
basepython = python3
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
doc8
|
|
commands = doc8 doc/source
|