Adoption of base framework code for azure plugin
[multicloud/azure.git] / azure / tox.ini
diff --git a/azure/tox.ini b/azure/tox.ini
new file mode 100644 (file)
index 0000000..d6559ab
--- /dev/null
@@ -0,0 +1,28 @@
+[tox]
+envlist = py27,pep8
+skipsdist = true
+
+[tox:jenkins]
+downloadcache = ~/cache/pip
+
+[testenv]
+deps = -r{toxinidir}/requirements.txt
+commands =
+  /usr/bin/find . -type f -name "*.py[c|o]" -delete
+  python manage.py test azure
+
+[testenv:pep8]
+deps=flake8
+commands=flake8
+
+[testenv:py27]
+commands =
+  {[testenv]commands}
+
+[testenv:cover]
+setenv=
+  DJANGO_SETTINGS_MODULE = azure.settings-cover
+commands =
+  coverage erase
+  {[testenv]commands}
+  coverage xml -i
\ No newline at end of file