Skip to content

Commit

Permalink
Add a venv tox job
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mtreinish committed Nov 29, 2017
1 parent 03de9e0 commit 3825ab8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions test-requirements.txt
@@ -1 +1,6 @@
pbr>=0.6,!=0.7,<1.0
Pygments
docutils
sphinx>=1.1.2,<1.2
oslosphinx
bashate >= 0.2
9 changes: 3 additions & 6 deletions tox.ini
Expand Up @@ -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}
Expand Down

0 comments on commit 3825ab8

Please sign in to comment.