Merge "Make Github url and clone url at Jenkins level."
[releng/global-jjb.git] / shell / tox-run.sh
1 #!/bin/bash
2 echo "---> tox-install.sh"
3
4 # Ensure we fail the job if any steps fail.
5 # DO NOT set -u as virtualenv's activate script has unbound variables
6 set -e -o pipefail
7
8 cd "$WORKSPACE/$TOX_DIR"
9
10 if [ -n "$TOX_ENVS" ];
11 then
12     tox -e "$TOX_ENVS"
13 else
14     tox
15 fi