nova-dpm/tox.ini
Markus Zoeller 462956ba1f Docs: Add Release Notes
To give customers a glimpse of what to expect from each release,
this change adds a way to add release notes.

The "normal" OpenStack projects have two different sphinx directories:
* doc/source/
* releasenotes/source
That's reasonable for them, as they publish to two different locations.

As an out-of-tree driver, we cannot use the usual release notes
location at http://docs.openstack.org/releasenotes/ All our docs go
to http://nova-dpm.rtfd.io/

This made it necessary to *not* use the default release notes
directory "releasenotes/source/" like the other projects.
Otherwise we would have two different RTD projects, one for the
"normal" docs and another one for the release notes.

As we only have one place for documentation (including release notes)
it didn't make sense to have a separate tox target to create those
release notes. They are included when the docs are built with:

    $ tox -e docs

This slight deviation from the upstream defaults made it necessary
to explain the dealing with reno release notes in a developer reference
(devref).

The one added release note is only to double-check if everything
behaves as expected. It has to be updated before the next release.

Closes bug: 1657842
Change-Id: I0d2d10ea2d91bb5193aa1092997db310b277878b
2017-02-01 18:05:56 +01:00

49 lines
1.4 KiB
INI

[tox]
minversion = 2.0
envlist = py35,py34,py27,pep8
skipsdist = True
[testenv]
usedevelop = True
# NOTE(markus_z): We need the commands keyword, otherwise tox 2.5.0 throws an error.
# See https://bugs.launchpad.net/charm-aodh/+bug/1642981 and
# https://github.com/tox-dev/tox/issues/316
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
-egit+https://github.com/openstack/nova#egg=nova
whitelist_externals = bash
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
commands = bash tools/pretty_tox.sh '{posargs}'
[testenv:pep8]
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands =
coverage erase
python setup.py test --coverage --coverage-package-name=nova_dpm --testr-args='{posargs}'
coverage report
[testenv:docs]
commands =
python setup.py build_sphinx
oslo-config-generator --config-file=etc/nova/nova-dpm-config-generator.conf
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.tmp,releasenotes
[testenv:genconfig]
commands = oslo-config-generator --config-file=etc/nova/nova-dpm-config-generator.conf