Test: add basic tox configuration
authorNsukami Patrick <ndkpatt at gmail dot com>
Tue, 19 Mar 2019 08:20:33 +0000
changeset 80 f2b596741f6f
parent 79 a263c1438750
child 81 5ec2c14fade9
Test: add basic tox configuration
dev-requirements.txt
tox.ini
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-requirements.txt	Tue Mar 19 08:20:33 2019 +0000
@@ -0,0 +1,9 @@
+pytest
+cwclientlib
+https://hg.logilab.org/master/cubes/geocoding/archive/default.tar.bz2
+https://hg.logilab.org/master/cubes/addressbook/archive/default.tar.bz2
+https://hg.logilab.org/master/cubes/card/archive/default.tar.bz2
+https://hg.logilab.org/master/cubes/folder/archive/default.tar.bz2
+https://hg.logilab.org/master/cubes/file/archive/default.tar.bz2
+https://hg.logilab.org/master/cubes/expense/archive/default.tar.bz2
+https://hg.logilab.org/master/cubes/workcase/archive/default.tar.bz2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tox.ini	Tue Mar 19 08:20:33 2019 +0000
@@ -0,0 +1,25 @@
+[tox]
+envlist = py27,py3,flake8
+
+[testenv]
+deps =
+  -rdev-requirements.txt
+commands =
+  {envpython} -m pytest {posargs}
+
+[pytest]
+python_files = *test_*.py
+testpaths = test
+addopts = -r fEs
+
+[testenv:flake8]
+basepython = python3
+skip_install = true
+deps =
+  flake8
+commands =
+  {envpython} -m flake8 {toxinidir} {posargs}
+
+[flake8]
+max-line-length = 120
+exclude = cubicweb_fresh/migration/*,.tox/*,