
Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Change-Id: I9ed787f9ca5b660cc091cbdbb7d03ca8e618f609
32 lines
786 B
INI
32 lines
786 B
INI
[tox]
|
|
minversion = 3.1.1
|
|
envlist = docs,py3
|
|
skipsdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
|
|
-r{toxinidir}/requirements.txt
|
|
commands = sphinx-build -W -E -b html -d doc/build/doctrees doc/source doc/build/html
|
|
|
|
[testenv:doc8]
|
|
deps = -r{toxinidir}/requirements.txt doc8
|
|
commands = doc8 doc/source
|
|
|
|
[testenv:autobuild]
|
|
whitelist_externals =
|
|
sphinx-autobuild
|
|
commands =
|
|
sphinx-autobuild --watch specs --open-browser doc/source doc/build
|