[tox] initial tox.ini
authorArthur Lutz <arthur.lutz@logilab.fr>
Fri, 06 Jan 2017 11:03:33 +0100
changeset 366 a03b280a3981
parent 360 70134ef83e01
child 367 d269f913a0a6
[tox] initial tox.ini
tox.ini
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tox.ini	Fri Jan 06 11:03:33 2017 +0100
@@ -0,0 +1,34 @@
+[tox]
+envlist = py27,flake8
+
+[tox:jenkins]
+envlist = py27, flake8-jenkins
+
+[testenv]
+sitepackages = True
+deps =
+  pytest
+  cubicweb-sioc
+commands =
+  {envpython} -m pytest {posargs:test}
+
+[testenv:flake8]
+skip_install = true
+whitelist_externals =
+  flake8
+deps =
+  flake8
+commands = flake8
+[testenv:flake8-jenkins]
+skip_install = true
+whitelist_externals =
+  flake8
+deps =
+  flake8
+commands = flake8 --exit-zero --show-source --output-file=code_quality.log {toxinidir}
+
+[flake8]
+format = pylint
+max-line-length = 100
+ignore = E731,W503
+exclude = __pkginfo__.py,migration/*,test/data/*,setup.py,.tox/*