Skip install in tox 77/10677/1
authorbeierlm <mark.beierl@canonical.com>
Tue, 20 Apr 2021 16:18:52 +0000 (12:18 -0400)
committerbeierlm <mark.beierl@canonical.com>
Tue, 20 Apr 2021 16:18:52 +0000 (12:18 -0400)
Tox commands by default should skip install of setup.py, avoiding
race conditions and only performing the bare minimum actions
required to pass an environment

Change-Id: I24af0894439b4a513929769bee382c0c32813466
Signed-off-by: beierlm <mark.beierl@canonical.com>
.gitignore
tox.ini

index f1e4221..6fa1dcf 100644 (file)
 
 #IDEs
 .idea
+.project
+.pydevproject
+.settings/
+
 
 #Generated folders when building the deb package locally
 debian/osm-imdocs.install
diff --git a/tox.ini b/tox.ini
index 0810474..54128a0 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -28,6 +28,7 @@ setenv = VIRTUAL_ENV={envdir}
          PYTHONDONTWRITEBYTECODE = 1
 passenv = HOME
 deps =  -r{toxinidir}/requirements.txt
+skip_install = true
 
 
 #######################################################################################
@@ -37,6 +38,7 @@ commands = python3 -c 'print("Skipping due to generated code")'
 
 #######################################################################################
 [testenv:cover]
+skip_install = false
 deps =  {[testenv]deps}
         -r{toxinidir}/requirements-test.txt
 commands =