X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Ftox-install.sh;h=25ff3ca5df1428f41b3780c6700a82bfa7e40632;hb=49914d6b5bc5f50ed1592ee72ad9d62fa68ed3f4;hp=254defebb606070fc4e69238bf86615eaa20ea7b;hpb=aa205517366205dd017d0801bd0cfe104e742c1a;p=releng%2Fglobal-jjb.git diff --git a/shell/tox-install.sh b/shell/tox-install.sh index 254defeb..25ff3ca5 100644 --- a/shell/tox-install.sh +++ b/shell/tox-install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -10,16 +10,11 @@ ############################################################################## echo "---> tox-install.sh" -# Ensure we fail the job if any steps fail. -# DO NOT set -u as virtualenv's activate script has unbound variables -set -e -o pipefail +# Ensure we fail the job if any steps fail or variables are missing. +# Use -x to show value of $PYTHON in output +set -eux -o pipefail -virtualenv --quiet -p "$PYTHON_VERSION" "/tmp/v/tox" -# shellcheck source=/tmp/v/tox/bin/activate disable=SC1091 -source "/tmp/v/tox/bin/activate" -pip install --quiet --upgrade pip setuptools -pip install --quiet --upgrade pipdeptree -pip install --quiet --upgrade argparse detox tox tox-pyenv +# Tox version is pulled in through detox to mitigate version conflict +$PYTHON -m pip install --user --quiet --upgrade tox-pyenv -echo "----> Pip Dependency Tree" -pipdeptree +$PYTHON -m pip freeze