Fix requirements for api-ref

To build api-ref, we need doc/requirements - set up dependency
correctly.

Change-Id: I9f42477d438933bbe17f1015b18a56e52fb7985d
This commit is contained in:
Andreas Jaeger 2018-04-23 14:57:08 +02:00
parent f9dc35cbd7
commit f03d049f58
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:api-ref]
whitelist_externals = rm
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html