Switch to python3.7 for engine tox 18/5018/1
authorFatih Degirmenci <fdegir@gmail.com>
Tue, 9 Jun 2020 13:59:24 +0000 (15:59 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Tue, 9 Jun 2020 13:59:24 +0000 (15:59 +0200)
The base image used for building the docker images used for tox
jobs seem to have switched to python3.7 so this change adapts the
tox script for it.

Please note that the engine itself is still on python3.6 but using
python3.7 for tox shouldn't interfere with it or cause issues.

Change-Id: I7dae37c6a5172004e111504f6f9e81fb573e0e11

jjb/engine/scripts/tox.sh

index be8b84623612569a2081cd1489369cc9b7360cbb..cbbc043e0efb2eaae186c404abd1ccf9744c9a9e 100755 (executable)
@@ -53,13 +53,13 @@ run_tox() {
   export DEBIAN_FRONTEND
 
   # install dependencies
-  echo "Info  : Install python3.6-minimal python3-distutils virtualenv using apt"
+  echo "Info  : Install python3.7-minimal python3-distutils virtualenv using apt"
   redirect_cmd sudo apt update
-  redirect_cmd sudo apt install -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -y python3.6-minimal python3-distutils virtualenv
+  redirect_cmd sudo apt install -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -y python3.7-minimal python3-distutils virtualenv
 
   # create and activate virtualenv
   echo "Info  : Create and activate python virtualenv"
-  redirect_cmd virtualenv -p python3.6 .venv
+  redirect_cmd virtualenv -p python3 .venv
   set +u
   redirect_cmd source .venv/bin/activate
   set -u