Files
barbican/tox.ini
T
John Vrbanac 4fd63b29a1 Fixing remaining hacking violations
The cleans up all remaining hacking violations and updates the test-
requirements to the latest approved version of hacking so we don't
regress on violations again.

Deleted several duplicated test cases (so I didn't have to fix the
hacking violations in them):

* test_secret_create_nones_blank_name_and_valid_content_type
* test_secret_get_defaults_none_as_bit_length
* test_secret_create_defaults_null_name

Change-Id: I21c7af4160c62222af0e54b947e301bc900250e6
2014-11-11 08:50:01 -06:00

62 lines
1.5 KiB
INI

[tox]
envlist = pep8,py26,py27,docs
[testenv]
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --coverage
coverage combine
coverage report -m
[testenv:diffcover]
deps =
{[testenv]deps}
diff_cover
commands =
python setup.py testr --coverage
coverage combine
coverage xml
diff-cover --fail-under 100 coverage.xml
[testenv:cover]
commands = coverage html {posargs:--include="*barbican*"}
[testenv:pep8]
sitepackages = False
commands = flake8 {posargs}
[testenv:venv]
commands = {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.9.2,<0.10"
flake8 barbican setup.py
[testenv:docs]
envdir = {toxworkdir}/venv
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 =
{[testenv]deps}
nose
git+https://github.com/openstack/tempest.git
commands = nosetests {toxinidir}/functionaltests
[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