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:
parent
d206f8f4ee
commit
0845ddcc7f
4
moduleroot/.gitignore
vendored
4
moduleroot/.gitignore
vendored
@ -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 %>
|
||||
|
6
moduleroot/test-requirements.txt
Normal file
6
moduleroot/test-requirements.txt
Normal 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
11
moduleroot/tox.ini
Normal 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
|
Loading…
x
Reference in New Issue
Block a user