Fix coverage exclude pattern issue
[multicloud/azure.git] / azure / tox.ini
index 4c2c67e..8ee4eca 100644 (file)
@@ -1,19 +1,26 @@
 [tox]
-envlist = py27,pep8
+envlist = py27,pep8, cover
 skipsdist = true
 
 [tox:jenkins]
 downloadcache = ~/cache/pip
 
 [testenv]
-deps = -r{toxinidir}/requirements.txt
+basepython =
+    py27: python2.7
+    pep8: python2.7
+    cover: python2.7
+deps =
+    -r{toxinidir}/requirements.txt
 commands =
   /usr/bin/find . -type f -name "*.py[c|o]" -delete
+  pip install {toxinidir}/aria/aria-extension-cloudify/src/aria
+  pip install {toxinidir}/aria/aria-extension-cloudify
   python manage.py test multicloud_azure
 
 [testenv:pep8]
 deps=flake8
-commands=flake8
+commands=flake8 --exclude='./aria/**,./*tox*/**'
 
 [testenv:py27]
 commands =
@@ -25,4 +32,4 @@ setenv=
 commands =
   coverage erase
   {[testenv]commands}
-  coverage xml -i
\ No newline at end of file
+  coverage xml -i --omit="./venv-tox/*,./.tox/*,*tests*,*/aria/*, *site-packages*"