[tox] Split migractions tests from server environment
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 22 Jun 2016 15:57:17 +0200
changeset 11354 6b7f4c6745a0
parent 11353 98edb500806f
child 11355 47b0b08fbb4b
[tox] Split migractions tests from server environment These are the longest tests in this environment, so running them apart (in parallel of others) would hopefully speed up the whole suite.
tox.ini
--- a/tox.ini	Thu Jun 23 10:24:11 2016 +0200
+++ b/tox.ini	Wed Jun 22 15:57:17 2016 +0200
@@ -1,7 +1,7 @@
 [tox]
 envlist =
-  py27-{cubicweb,dataimport,devtools,entities,etwist,ext,hooks,server,sobjects,web,wsgi},
-  py34-{cubicweb,dataimport,devtools,entities,ext,hooks,server,sobjects,web,wsgi}
+  py27-{cubicweb,dataimport,devtools,entities,etwist,ext,hooks,server,migractions,sobjects,web,wsgi},
+  py34-{cubicweb,dataimport,devtools,entities,ext,hooks,server,migractions,sobjects,web,wsgi}
 
 [testenv]
 usedevelop = True
@@ -18,12 +18,14 @@
   ext: -r{toxinidir}/cubicweb/ext/test/requirements.txt
   hooks: -r{toxinidir}/cubicweb/hooks/test/requirements.txt
   server: -r{toxinidir}/cubicweb/server/test/requirements.txt
+  migractions: -r{toxinidir}/cubicweb/server/test/requirements.txt
   sobjects: -r{toxinidir}/cubicweb/sobjects/test/requirements.txt
   web: -r{toxinidir}/cubicweb/web/test/requirements.txt
   wsgi: -r{toxinidir}/cubicweb/wsgi/test/requirements.txt
 commands =
   py34-cubicweb: touch {envdir}/share/cubicweb/cubes/__init__.py
   py34-server: touch {envdir}/share/cubicweb/cubes/__init__.py
+  py34-migractions: touch {envdir}/share/cubicweb/cubes/__init__.py
   py34-sobjects: touch {envdir}/share/cubicweb/cubes/__init__.py
   py34-web: touch {envdir}/share/cubicweb/cubes/__init__.py
   cubicweb: {envpython} -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master#egg=yapps
@@ -34,7 +36,8 @@
   etwist: {envpython} -m pytest {toxinidir}/cubicweb/etwist/test {posargs}
   ext: {envpython} -m pytest {toxinidir}/cubicweb/ext/test {posargs}
   hooks: {envpython} -m pytest {toxinidir}/cubicweb/hooks/test {posargs}
-  server: {envpython} -m pytest {toxinidir}/cubicweb/server/test {posargs}
+  server: {envpython} -m pytest {toxinidir}/cubicweb/server/test {posargs} --ignore={toxinidir}/cubicweb/server/test/unittest_migractions.py
+  migractions: {envpython} -m pytest {toxinidir}/cubicweb/server/test/unittest_migractions.py {posargs}
   sobjects: {envpython} -m pytest {toxinidir}/cubicweb/sobjects/test {posargs}
   web: {envpython} -m pytest {toxinidir}/cubicweb/web/test {posargs}
   wsgi: {envpython} -m pytest {toxinidir}/cubicweb/wsgi/test {posargs}