From: Fatih Degirmenci Date: Tue, 9 Jun 2020 13:59:24 +0000 (+0200) Subject: Switch to python3.7 for engine tox X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=82107d24d760b8fe87f66afd457f18dcde3571d4;p=infra%2Fcicd.git Switch to python3.7 for engine tox 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 --- diff --git a/jjb/engine/scripts/tox.sh b/jjb/engine/scripts/tox.sh index be8b84623..cbbc043e0 100755 --- a/jjb/engine/scripts/tox.sh +++ b/jjb/engine/scripts/tox.sh @@ -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