79cc6c1db5
Use the new PTI docs building commands, these use "tox -e docs" for building, also update the publishing job. Update tox.ini to use sphinx-build directly as documented in the PTI. Note that we have to disable warnings, otherwise building fails with: doc/source/results/ocata/ptl.rst:3:Duplicate explicit target name: "tony breeds (tonyb)". Be aware that with current pbr and Sphinx, warnings are disabled due to change of parameter names - so, this keeps the status quo. Depends-On: https://review.openstack.org/615501 Needed-By: https://review.openstack.org/615637 Change-Id: I4713f3a25e08056b7bce9812fa2cf62119330fcc
39 lines
1008 B
INI
39 lines
1008 B
INI
[tox]
|
|
envlist = docs,linters,py35,py27
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
# NOTE: If py35 fails with "db type could not be determined", delete
|
|
# .testrepository and try again. Running py35 before py27 is OK, but not the
|
|
# other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:linters]
|
|
commands = yamllint configuration.yaml
|
|
flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:venv2]
|
|
basepython = python2
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
# NOTE: -W is not added since ocata/ptl.rst throws a warning about duplicate
|
|
# IDs.
|
|
commands = sphinx-build -b html -d doc/build/doctrees doc/source doc/build/html
|
|
|
|
[testenv:ci-checks]
|
|
commands = ci-check-all-candidate-files
|
|
|
|
[flake8]
|
|
exclude=.tox,doc/source/conf.py
|