Support vmware_fake requests
[multicloud/framework.git] / multivimbroker / tox.ini
index 9292301..cda89e4 100644 (file)
@@ -1,5 +1,5 @@
 [tox]
-envlist = py27
+envlist = py27,pep8
 skipsdist = true
 
 [tox:jenkins]
@@ -7,4 +7,22 @@ downloadcache = ~/cache/pip
 
 [testenv]
 deps = -r{toxinidir}/requirements.txt
-commands = coverage run --branch manage.py test multivimbroker
+commands =
+  /usr/bin/find . -type f -name "*.py[c|o]" -delete
+  python manage.py test multivimbroker
+
+[testenv:pep8]
+deps=flake8
+commands=flake8
+
+[testenv:py27]
+commands =
+  {[testenv]commands}
+
+[testenv:cover]
+setenv=
+  DJANGO_SETTINGS_MODULE = multivimbroker.settings-cover
+commands =
+  coverage erase
+  {[testenv]commands}
+  coverage xml -i