diff --git a/tox.ini b/tox.ini index 991d374f..cbedc831 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = checkniceness,checksyntax,checkdeletions,checkbuild,checklinks +envlist = slides skipsdist = True [testenv] @@ -18,77 +18,19 @@ whitelist_externals = [testenv:venv] commands = {posargs} -[testenv:checklinks] -commands = openstack-doc-test --check-links {posargs} - -[testenv:checkniceness] -commands = openstack-doc-test --check-niceness {posargs} - -[testenv:checksyntax] -commands = - openstack-doc-test --check-syntax {posargs} - # Check that .po and .pot files are valid: - bash -c "find doc -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null" - -[testenv:checkdeletions] -commands = openstack-doc-test --check-deletions {posargs} - -[testenv:checkbuild] -commands = - mkdir -p publish-docs/trunk/training-guides - openstack-doc-test --check-build {posargs} - # Build labs scripts - bash {toxinidir}/tools/generatelabs - -[testenv:publishdocs] -# Prepare all documents (except www subdir) so that they can get -# published on docs.openstack.org with just copying publish-docs/* -# over. -commands = - # Create directory, it might not be here if openstack-doc-test does - # not publish anything. - mkdir -p publish-docs/trunk/training-guides - # We only publish changed manuals. - openstack-doc-test --check-build --publish - # Build and publish training labs scripts - bash {toxinidir}/tools/generatelabs - -[testenv:checklang] -# Generatedocbook needs xml2po which cannot be installed -# in the venv. Since it's installed in the system, let's -# use sitepackages. -sitepackages=True -whitelist_externals = doc-tools-check-languages -commands = doc-tools-check-languages doc-tools-check-languages.conf test all - -[testenv:buildlang] -# Run as "tox -e buildlang -- $LANG" -# Generatedocbook needs xml2po which cannot be installed -# in the venv. Since it's installed in the system, let's -# use sitepackages. -sitepackages=True -whitelist_externals = doc-tools-check-languages -commands = doc-tools-check-languages doc-tools-check-languages.conf test {posargs} - -[testenv:publishlang] -# Generatedocbook needs xml2po which cannot be installed -# in the venv. Since it's installed in the system, let's -# use sitepackages. -sitepackages=True -whitelist_externals = doc-tools-check-languages -commands = doc-tools-check-languages doc-tools-check-languages.conf test all - [testenv:slides] # New RST based environment for building slides # Note: Resulting files will not be made available anywhere. -commands= +commands = # Niceness test for doc directory doc8 doc + # Build labs tar/zip files mkdir -p publish-docs/trunk/training-guides - # Build labs scripts + # Build training labs scripts bash {toxinidir}/tools/generatelabs [doc8] # Settings for doc8: # File extensions to use extensions = .rst,.txt +