dfilppi | 9981f55 | 2017-08-07 20:10:53 +0000 | [diff] [blame^] | 1 | # content of: tox.ini , put in same dir as setup.py |
| 2 | [tox] |
| 3 | envlist=flake8,docs,py27 |
| 4 | |
| 5 | [testenv] |
| 6 | deps = |
| 7 | -rdev-requirements.txt |
| 8 | |
| 9 | [testenv:py27] |
| 10 | deps = |
| 11 | coverage==3.7.1 |
| 12 | nose |
| 13 | nose-cov |
| 14 | mock |
| 15 | testfixtures |
| 16 | {[testenv]deps} |
| 17 | commands = |
| 18 | nosetests --with-cov --cov-report term-missing \ |
| 19 | --cov cinder_plugin cinder_plugin/tests \ |
| 20 | --cov glance_plugin glance_plugin/tests \ |
| 21 | --cov keystone_plugin keystone_plugin/tests \ |
| 22 | --cov neutron_plugin \ |
| 23 | neutron_plugin/tests/test_port.py neutron_plugin/tests/test_security_group.py \ |
| 24 | --cov nova_plugin nova_plugin/tests \ |
| 25 | --cov openstack_plugin_common openstack_plugin_common/tests |
| 26 | |
| 27 | [testenv:docs] |
| 28 | changedir=docs |
| 29 | deps = |
| 30 | git+https://github.com/cloudify-cosmo/sphinxify.git@initial-work |
| 31 | commands = |
| 32 | sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html |
| 33 | |
| 34 | [testenv:flake8] |
| 35 | deps = |
| 36 | flake8 |
| 37 | {[testenv]deps} |
| 38 | commands = |
| 39 | flake8 cinder_plugin |
| 40 | flake8 neutron_plugin |
| 41 | flake8 nova_plugin |
| 42 | flake8 openstack_plugin_common |
| 43 | flake8 glance_plugin |
| 44 | flake8 keystone_plugin |