[test/tox] Enforce installation of modified yapps
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 20 Nov 2015 14:17:46 +0100
changeset 10900 d666c9386b58
parent 10899 e0abfc3b4a10
child 10901 ddeac3ecdd88
[test/tox] Enforce installation of modified yapps 580a6821713d is not enough for tox apparently... The thing is that it will first install dependencies (the `deps` option from tox.ini), actually pulling yapps from Logilab github but then, it will install the project (that is, CubicWeb) from the sdist *along with its dependencies*, which will pull yapps again and override the previously installed version for some mysterious reason. So add a `pip install` command in tox.ini, so that the modified yapps is the last one installed.
test/requirements.txt
tox.ini
--- a/test/requirements.txt	Fri Sep 18 11:12:03 2015 +0200
+++ b/test/requirements.txt	Fri Nov 20 14:17:46 2015 +0100
@@ -4,4 +4,3 @@
 cubicweb-file
 cubicweb-localperms
 cubicweb-tag
-git+git://github.com/logilab/yapps@master#egg=yapps
--- a/tox.ini	Fri Sep 18 11:12:03 2015 +0200
+++ b/tox.ini	Fri Nov 20 14:17:46 2015 +0100
@@ -8,7 +8,9 @@
 [testenv:cubicweb]
 deps =
   -r{toxinidir}/test/requirements.txt
-commands = pytest -t test {posargs}
+commands =
+  {envpython} -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master#egg=yapps
+  pytest -t test {posargs}
 
 [testenv:dataimport]