barbican/tox.ini
Kaitlin Farr 1519d5a086 Add reno for release notes management
This cycle, to address these problems for our ever-growing set of
projects, the release management team is introducing a new tool for
handling release notes as files in-tree, to allow us to simply and
continuously build the release notes for stable branch point releases
and milestones on the master branch. The idea is to use small YAML
files, usually one per note or patch, to avoid merge conflicts on
backports and then to compile those files in a deterministic way
into a more readable document for readers. Files containing release
notes can be including in patches directly, or you can create a
separate patch with release notes if you want to document a feature
than spans several patches.  The tool is called Reno, and it currently
supports ReStructuredText and Sphinx for converting note input files
to HTML for publication.  Reno is git branch-aware, so we can have
separate release notes documents for each release series published
together from the master build.

-- Excerpted from Doug Hellmann's email to the mailing list
http://lists.openstack.org/pipermail/openstack-dev/2015-November/078301.html

For more information about Reno:
http://docs.openstack.org/developer/reno/

Change-Id: I4028d52f5e67d2873b3dc9df279f78a15c35d84f
2015-12-01 10:33:18 -05:00

105 lines
3.7 KiB
INI

[tox]
envlist = pep8,py27,py34,docs
[testenv]
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
python setup.py testr --coverage --testr-args='{posargs}'
coverage combine
coverage report -m
[testenv:cover]
deps =
{[testenv]deps}
diff_cover
commands =
python setup.py testr --coverage --testr-args='{posargs}'
coverage combine
coverage xml
diff-cover --fail-under 100 coverage.xml
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:py34]
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
python -m testtools.run \
barbican.tests.api.controllers.test_versions \
barbican.tests.api.middleware.test_context \
barbican.tests.api.middleware.test_simple \
barbican.tests.cmd.test_cmd \
barbican.tests.common.test_hrefs \
barbican.tests.common.test_quota \
barbican.tests.common.test_utils \
barbican.tests.model.repositories.test_repositories \
barbican.tests.model.repositories.test_repositories_acls \
barbican.tests.model.repositories.test_repositories_certificate_authorities \
barbican.tests.model.repositories.test_repositories_consumers \
barbican.tests.model.repositories.test_repositories_containers \
barbican.tests.model.repositories.test_repositories_order_retry_tasks \
barbican.tests.model.repositories.test_repositories_orders \
barbican.tests.model.repositories.test_repositories_projects \
barbican.tests.model.repositories.test_repositories_quotas \
barbican.tests.model.repositories.test_repositories_secrets \
barbican.tests.model.repositories.test_repositories_transport_keys \
barbican.tests.model.test_models \
barbican.tests.plugin.crypto.test_manager \
barbican.tests.plugin.interface.test_secret_store \
barbican.tests.plugin.test_simple_certificate_manager \
barbican.tests.plugin.util.test_mime_types \
barbican.tests.plugin.util.test_utils \
barbican.tests.queue.test_client \
barbican.tests.queue.test_keystone_listener \
barbican.tests.queue.test_retry_scheduler \
barbican.tests.queue.test_server \
barbican.tests.tasks.test_certificate_resources \
barbican.tests.tasks.test_common \
barbican.tests.tasks.test_resources
[testenv:pep8]
sitepackages = False
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:py3pep8]
# This hack is in place to allow us to run py3 based flake8
# without installing barbican.
basepython = python3
install_command = /bin/echo {packages}
commands =
pip install "hacking>=0.10.0,<0.11"
flake8 barbican setup.py
[testenv:docs]
commands=
python setup.py build_sphinx
[testenv:functional]
# This tox env is purely to make local test development easier
# Note: This requires local running instances of Barbican and Keystone
deps = -r{toxinidir}/test-requirements.txt
setenv = OS_TEST_PATH={toxinidir}/functionaltests
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
/bin/bash {toxinidir}/functionaltests/pretty_tox.sh '{posargs}'
[flake8]
# E711 ignored because of sqlalchemy override of == None
ignore = E711
exclude = .git,.idea,.tox,bin,dist,debian,rpmbuild,tools,*.egg-info,*.eggs,*openstack/common,contrib,
functionaltests,*alembic_migrations/versions,*docs/target,*.egg
[testenv:bandit]
deps = -r{toxinidir}/test-requirements.txt
commands = bandit -c bandit.yaml -r barbican -n5 -p barbican_conservative