From 4b9a982ff4a9d6a0e80bc6d5c065c83b50df58fb Mon Sep 17 00:00:00 2001 From: 98k <18552437190@163.com> Date: Fri, 24 Aug 2018 06:41:33 +0000 Subject: [PATCH] switch documentation job to new PTI This is a mechanically generated patch to switch the documentation jobs to use the new PTI versions of the jobs as part of the python3-first goal. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Fix tox doc environment so that this works: * move doc8 to pep8 following PTI * build doc dir, not api-ref Change-Id: I57003bd81f8214f27e3ca95ea87bba24fd44191b Story: #2002586 Task: #24346 --- .zuul.yaml | 4 ++-- tox.ini | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 3776deff4..79383e6d4 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -84,8 +84,8 @@ - openstack-python-jobs - periodic-stable-jobs - check-requirements - - publish-openstack-sphinx-docs - - release-notes-jobs + - publish-openstack-docs-pti + - release-notes-jobs-python3 - install-guide-jobs check: jobs: diff --git a/tox.ini b/tox.ini index 625324909..d3150e53a 100644 --- a/tox.ini +++ b/tox.ini @@ -26,7 +26,9 @@ commands = ostestr --concurrency 1 {posargs} [testenv:pep8] basepython = python3 -commands = flake8 +commands = + doc8 doc/source + flake8 [testenv:genconfig] basepython = python3 @@ -53,11 +55,8 @@ commands = {posargs} basepython = python3 deps = -r{toxinidir}/doc/requirements.txt - -r{toxinidir}/test-requirements.txt - commands = - doc8 doc/source - sphinx-build -W -b html api-ref/source api-ref/build/html + sphinx-build -W -b html doc/source doc/build/html [testenv:api-ref] basepython = python3