blob: b3572d70d21c5336092ebe9376b52b30ce78337d [file] [log] [blame]
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist=flake8,docs,py27
[testenv]
deps =
-rdev-requirements.txt
[testenv:py27]
deps =
coverage==3.7.1
nose
nose-cov
mock
testfixtures
{[testenv]deps}
commands =
nosetests --with-cov --cov-report term-missing \
--cov cinder_plugin cinder_plugin/tests \
--cov glance_plugin glance_plugin/tests \
--cov keystone_plugin keystone_plugin/tests \
--cov neutron_plugin \
neutron_plugin/tests/test_port.py neutron_plugin/tests/test_security_group.py \
--cov nova_plugin nova_plugin/tests \
--cov openstack_plugin_common openstack_plugin_common/tests
[testenv:docs]
changedir=docs
deps =
git+https://github.com/cloudify-cosmo/sphinxify.git@initial-work
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:flake8]
deps =
flake8
{[testenv]deps}
commands =
flake8 cinder_plugin
flake8 neutron_plugin
flake8 nova_plugin
flake8 openstack_plugin_common
flake8 glance_plugin
flake8 keystone_plugin