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
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