Update tox.ini for tripleo-docs

Removes the pep8 and bindep tox environments. pep8 did not run
successfully as there is no test-requirements.txt file, and there is
nothing to test anyway. bindep also has nothing to test, so it's also
removed.

The deploy-guide tox environment is added to the default list so that
just running "tox" results in a full build of the documentation
including the user and deploy guide.

Change-Id: I1990556fec47905d2e137b51bcaefd15fe597dea
This commit is contained in:
James Slagle 2021-05-04 10:51:19 -04:00
parent e484fa1349
commit 6151147daf
1 changed files with 1 additions and 25 deletions

26
tox.ini
View File

@ -1,7 +1,7 @@
[tox]
minversion = 2.0
skipsdist = True
envlist = docs,pep8,bindep
envlist = docs,deploy-guide
[testenv]
basepython = python3
@ -30,30 +30,6 @@ commands =
sphinx-build --keep-going -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:pep8]
whitelist_externals = bash
deps = -r{toxinidir}/test-requirements.txt
# We fail pretty horribly on bashate right now
#commands = bash -c "find scripts -type f | xargs bashate -v"
# flake8
commands = flake8
[flake8]
show-source = True
exclude = .tox,dist,*.egg,build
[testenv:deploy-guide]
deps = {[testenv:docs]deps}
commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees --keep-going -b html deploy-guide/source deploy-guide/build/html
[testenv:bindep]
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files, and develop mode disabled
# explicitly to avoid unnecessarily installing the checked-out repo too (this
# further relies on "tox.skipsdist = True" above).
usedevelop = False
deps = bindep
commands =
bindep test