summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-09-29 10:18:47 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-09-29 10:18:47 +0800
commit841ec9acc044122f0b465cc97dfdd4c0b7fb4678 (patch)
treeac1e332fdc89ce6e1b772494380edf81c27051d2 /res
parent0b3ba5a4a5125bea3f3a3b5a6412d752dc6e48c6 (diff)
Add vfc-gvnfm-vnfres tox coverge check
Change-Id: I4612707eb04450816f5e10a510f7b4304ba18431 Issue-ID: VFC-477 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'res')
-rw-r--r--res/tox.ini13
1 files changed, 12 insertions, 1 deletions
diff --git a/res/tox.ini b/res/tox.ini
index 3f58390..95b9a24 100644
--- a/res/tox.ini
+++ b/res/tox.ini
@@ -1,10 +1,21 @@
[tox]
-envlist = py27
+envlist = py27,pep8,cov
skipsdist = true
[tox:jenkins]
downloadcache = ~/cache/pip
+[flake8]
+ignore = E501,E226,E126,W293,E502,E225,E302
+
[testenv]
deps = -r{toxinidir}/requirements.txt
commands = coverage run --branch manage.py test res
+
+[testenv:pep8]
+deps = flake8
+commands = flake8
+
+[testenv:py27]
+commands =
+ {[testenv]commands} \ No newline at end of file