Add tox env to build docs

In django-based projects, we need to specify DJANGO_SETTINGS_MODULE
when running docs build. It is required to addresses the failure of
docs build job in the gate.

Change-Id: I33a867bc00c70f333c4dc62add411f833e418424
Closes-Bug: #1302532
This commit is contained in:
Akihiro Motoki 2014-04-04 20:44:47 +09:00
parent a582726d1f
commit 112f16dd56
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:docs]
setenv = DJANGO_SETTINGS_MODULE=openstack_auth.tests.settings
commands = python setup.py build_sphinx
[tox:jenkins]
downloadcache = ~/cache/pip