Add a venv tox job

The docs CI job is failing on trying to run tox -evenv to run build
sphinx. However this job was not defined anywhere. THis commit adds the
job definition to hopefully unbreak the job. To enable the jobs to work
we also need to install the sphinx deps to build the docs. This was
previously done in the tox.ini but this commit moves it to
test-requirements.txt to ensure that all the tox jobs are able to build
docs.

Change-Id: I5457f3e442fe673a81925a8ed2f36f4eab0639cb
This commit is contained in:
Matthew Treinish 2017-11-29 14:29:13 -05:00
parent 03de9e0fc7
commit 3825ab8ac7
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
2 changed files with 8 additions and 6 deletions

View File

@ -1 +1,6 @@
pbr>=0.6,!=0.7,<1.0
Pygments
docutils
sphinx>=1.1.2,<1.2
oslosphinx
bashate >= 0.2

View File

@ -8,17 +8,14 @@ install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:bashate]
commands =
bash -c "ls *.sh prep-* stop-* upgrade-* from-*/upgrade-* functions | xargs bashate -v {posargs}"
[testenv:docs]
deps =
Pygments
docutils
sphinx>=1.1.2,<1.2
pbr>=0.6,!=0.7,<1.0
oslosphinx
whitelist_externals = bash
setenv =
TOP_DIR={toxinidir}