From 0cb972b5b068f31de744147d02a5df3582f90665 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 7 Feb 2018 17:37:08 -0600 Subject: [PATCH] Update tox docs environment to match build-sphinx-docs docs is a recommended developer convenience environment for doing the sphinx build locally. The zuul job runs the sphinx-build command. Update the docs env to do the same thing. Move the job definitions in-tree - and also remove tox-docs. Change-Id: Id810b8de1794b11b236eaa04940acbb754dd4b52 --- .zuul.yaml | 10 +++++++++- tox.ini | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 7b9deea46..be5676860 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -66,7 +66,6 @@ - project: check: jobs: - - tox-docs - tox-cover - tox-pep8 - tox-py35 @@ -74,10 +73,19 @@ voting: false - nodepool-functional-py35-src: voting: false + - build-sphinx-docs: + vars: + sphinx_python: python3 gate: jobs: - tox-pep8 - tox-py35 + - build-sphinx-docs: + vars: + sphinx_python: python3 + post: + jobs: + - publish-openstack-sphinx-docs-infra-python3 experimental: jobs: - nodepool-zuul-functional diff --git a/tox.ini b/tox.ini index 91133dca1..6638ca5a2 100644 --- a/tox.ini +++ b/tox.ini @@ -36,7 +36,7 @@ commands = [testenv:docs] basepython = python3 commands = - python setup.py build_sphinx + sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html [testenv:venv] basepython = python3