3f2d3415e4
Depends-on: I98d4c3e9924346b826e5267b0b7c6b73f86741aa Change-Id: Iada900ac58f0cbfd5035a9cc371669dc998e8d80
41 lines
939 B
INI
41 lines
939 B
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = docs,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython=python3
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = find
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
stestr run --slowest {posargs}
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
setenv = PYTHONHASHSEED=0
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
stestr run --slowest {posargs}
|
|
flake8 {posargs}
|
|
|
|
[flake8]
|
|
ignore = E128
|
|
exclude = .venv,.git,.tox,doc,.eggs
|