blob: b3572d70d21c5336092ebe9376b52b30ce78337d [file] [log] [blame]
dfilppi9981f552017-08-07 20:10:53 +00001# content of: tox.ini , put in same dir as setup.py
2[tox]
3envlist=flake8,docs,py27
4
5[testenv]
6deps =
7 -rdev-requirements.txt
8
9[testenv:py27]
10deps =
11 coverage==3.7.1
12 nose
13 nose-cov
14 mock
15 testfixtures
16 {[testenv]deps}
17commands =
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]
28changedir=docs
29deps =
30 git+https://github.com/cloudify-cosmo/sphinxify.git@initial-work
31commands =
32 sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
33
34[testenv:flake8]
35deps =
36 flake8
37 {[testenv]deps}
38commands =
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