tox: don't enable global site package
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Mon, 29 Oct 2018 12:05:57 +0100
changeset 2973 e2837a22e676
parent 2972 359177d6a1c8
child 2974 7a50aa30acf7
tox: don't enable global site package This is known to produce non-reproductible tests. Furthermore we deploy using pip and virtualenv on Centos 7 but we are testing on Debian stretch, so testing global site package on jenkins has no advantage. Thus we can disable some whitelist_externals which are no longer required.
tox.ini
--- a/tox.ini	Fri Oct 19 13:59:56 2018 +0200
+++ b/tox.ini	Mon Oct 29 12:05:57 2018 +0100
@@ -6,7 +6,6 @@
 
 
 [testenv]
-sitepackages = True
 deps =
   -rdev-requirements.txt
 commands = {envpython} -m pytest {posargs:{toxinidir}/test}
@@ -25,16 +24,12 @@
 
 [testenv:flake8]
 skip_install = true
-whitelist_externals =
-  flake8
 deps =
   flake8
 commands = flake8 {posargs:{toxinidir}}
 
 [testenv:flake8-jenkins]
 skip_install = true
-whitelist_externals =
-  flake8
 deps =
   flake8
 commands = flake8 --exit-zero --show-source --output-file=code_quality.log {toxinidir}
@@ -57,8 +52,6 @@
 
 [testenv:doc]
 changedir = doc
-whitelist_externals =
-  sphinx-build
 deps =
   sphinx
 commands = sphinx-build -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html