designate-dashboard/tox.ini
Kiall Mac Innes 49d44524d9 Conform to Consistent Testing Interface
Make minimal changes necessary conform to, and pass,
the Consistent Testing Interface[1].

* tox -epy27
* tox -epep8
* tox -ecover
* tox -evenv python setup.py sdist
* tox -evenv python setup.py build_sphinx
* tox -evenv python setup.py extract_messages

The only exception to this is currently:

* tox -evenv python setup.py update_catalog

[1]: http://governance.openstack.org/reference/project-testing-interface.html

Change-Id: I50dd7fa9bbdd6a09b25ad0ee3785d37f2a32045f
2015-06-20 15:13:30 +01:00

42 lines
1.1 KiB
INI

[tox]
minversion = 1.6
envlist = py27,py34,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_OPENSTACK=1
NOSE_OPENSTACK_COLOR=1
NOSE_OPENSTACK_RED=0.05
NOSE_OPENSTACK_YELLOW=0.025
NOSE_OPENSTACK_SHOW_ELAPSED=1
DJANGO_SETTINGS_MODULE=designatedashboard.settings
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
http://tarballs.openstack.org/horizon/horizon-master.tar.gz
commands = {toxinidir}/manage.py test designatedashboard --settings=designatedashboard.tests.settings
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = {toxinidir}/manage.py test designatedashboard --settings=designatedashboard.tests.settings --cover-xml
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,H803
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build