Update tox env to match zuul PTI

Zuul runs sphinx-build, not python setup.py build_sphinx. Update the
helper env.

Also, for some reason sphinx can't parse a yaml snippet when using
python2, so be explicit about python2.

Change-Id: I5649d2bfca4972caecb32aaedaa9814a425e9bb1
This commit is contained in:
Monty Taylor 2018-01-03 13:40:41 -06:00
parent bdb20e2b47
commit 1c3736e937
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 2 additions and 1 deletions

View File

@ -13,4 +13,5 @@ deps = -r{toxinidir}/requirements.txt
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
basepython = python2
commands = sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html