Update tox configuration

Update the tox configuration to pull in the openstack
upper-constraints.txt when running releasenotes. This will
fix the releasenotes job that is currently failing due to
a new version of sphinx. Additionally this change includes
updates from puppet-modulesync-configs.

Change-Id: Ie3b7eb23ceb1e24e4a9d34182338145744578fea
This commit is contained in:
Alex Schultz 2017-05-17 08:26:28 -06:00
parent 5401a0f75c
commit 5fb6cce510
4 changed files with 15 additions and 4 deletions

1
.gitignore vendored
View File

@ -9,7 +9,6 @@ coverage/
*.swp *.swp
*.iml *.iml
openstack/ openstack/
log/
# Files created by releasenotes build # Files created by releasenotes build
releasenotes/build releasenotes/build

View File

@ -1,9 +1,7 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org" source ENV['GEM_SOURCE'] || "https://rubygems.org"
group :development, :test, :system_tests do group :development, :test, :system_tests do
gem 'puppet-openstack_spec_helper', gem 'puppet-openstack_spec_helper', :require => 'false', :git => 'https://git.openstack.org/openstack/puppet-openstack_spec_helper'
:git => 'https://git.openstack.org/openstack/puppet-openstack_spec_helper',
:require => false
end end
if facterversion = ENV['FACTER_GEM_VERSION'] if facterversion = ENV['FACTER_GEM_VERSION']

View File

@ -0,0 +1,11 @@
# This is a cross-platform list tracking distribution packages needed by tests;
# see http://docs.openstack.org/infra/bindep/ for additional information.
libxml2-devel [test platform:rpm]
libxml2-dev [test platform:dpkg]
libxslt-devel [test platform:rpm]
libxslt1-dev [test platform:dpkg]
ruby-devel [test platform:rpm]
ruby-dev [test platform:dpkg]
zlib1g-dev [test platform:dpkg]
zlib-devel [test platform:rpm]

View File

@ -3,6 +3,9 @@ minversion = 1.6
skipsdist = True skipsdist = True
envlist = releasenotes 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] [testenv:releasenotes]
deps = -rtest-requirements.txt deps = -rtest-requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html