Tox officially supports parallel mode as of Tox 3.7 so drop the
usage of detox. Set parallel mode to 'auto' which will run as many
threads as available CPUs.
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: Id59ad10ed9b521a5c0ca3fef3e7e15053c2dc32c
dogpile.cache~=0.6.8 # Version 0.7.[01] seems to break openstackclient
more-itertools~=5.0.0
niet~=1.4.2 # Extract values from yaml
dogpile.cache~=0.6.8 # Version 0.7.[01] seems to break openstackclient
more-itertools~=5.0.0
niet~=1.4.2 # Extract values from yaml
+tox>=3.7.0. # Tox 3.7 or greater is necessary for parallel mode support
set -e -o pipefail
# Tox version is pulled in through detox to mitigate version conflict
set -e -o pipefail
# Tox version is pulled in through detox to mitigate version conflict
-python -m pip install --user --quiet --upgrade argparse detox tox-pyenv
+python -m pip install --user --quiet --upgrade tox-pyenv
echo "----> pip freeze"
pip freeze
echo "----> pip freeze"
pip freeze
PARALLEL="${PARALLEL:-true}"
if [ "${PARALLEL}" = true ]; then
if [ -n "$TOX_ENVS" ]; then
PARALLEL="${PARALLEL:-true}"
if [ "${PARALLEL}" = true ]; then
if [ -n "$TOX_ENVS" ]; then
- detox -e "$TOX_ENVS" | tee -a "$ARCHIVE_TOX_DIR/detox.log"
+ tox -e "$TOX_ENVS" --parallel auto --parallel-live | tee -a "$ARCHIVE_TOX_DIR/tox.log"
tox_status="${PIPESTATUS[0]}"
else
tox_status="${PIPESTATUS[0]}"
else
- detox | tee -a "$ARCHIVE_TOX_DIR/detox.log"
+ tox --parallel auto --parallel-live | tee -a "$ARCHIVE_TOX_DIR/tox.log"
tox_status="${PIPESTATUS[0]}"
fi
else
if [ -n "$TOX_ENVS" ]; then
tox_status="${PIPESTATUS[0]}"
fi
else
if [ -n "$TOX_ENVS" ]; then
- tox -e "$TOX_ENVS" | tee -a "$ARCHIVE_TOX_DIR/tox.log"
+ tox -e "$TOX_ENVS" | tee -a "$ARCHIVE_TOX_DIR/tox.log"
tox_status="${PIPESTATUS[0]}"
else
tox | tee -a "$ARCHIVE_TOX_DIR/tox.log"
tox_status="${PIPESTATUS[0]}"
else
tox | tee -a "$ARCHIVE_TOX_DIR/tox.log"