Add tox configuration items

Update tox.ini to pull in the openstack upper constraints when
installing the environment for the releasenotes and pull in the
test-requirements.txt as well

Change-Id: I84f23b7218c5b2da70f8c47efdc1645d625c827e
Depends-On: I326f27e880bc9717243258044496d42de50b6972
This commit is contained in:
Alex Schultz 2017-05-16 15:02:07 -06:00
parent d206f8f4ee
commit 0845ddcc7f
3 changed files with 21 additions and 0 deletions

View File

@ -9,6 +9,10 @@ coverage/
*.swp
*.iml
openstack/
# Files created by releasenotes build
releasenotes/build
.tox
<% if ! @configs['paths'].nil? -%>
<% @configs['paths'].each do |path| -%>
<%= path %>

View File

@ -0,0 +1,6 @@
# this is required for the docs build jobs
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
oslosphinx>=2.5.0 # Apache-2.0
# This is required for the releasenotes build jobs
# FIXME: reno is manually pinned to !=2.0.0 because of bug #1651995
reno>=1.8.0,!=2.0.0 # Apache-2.0

11
moduleroot/tox.ini Normal file
View File

@ -0,0 +1,11 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = releasenotes
[testenv]
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
[testenv:releasenotes]
deps = -rtest-requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html