Skip to content
Snippets Groups Projects
Commit 193c355f authored by Stuart Young's avatar Stuart Young
Browse files

change toxenv checking in ci script

parent 5a9d21db
No related merge requests found
......@@ -69,10 +69,16 @@ END
}
if [ -n "${TOX_ENV}" ]; then
# if specified tox environment is supported, prepend paver commands
# with tox env invocation
if [ -z ${TOX_ENV+x} ] || [[ ${TOX_ENV} == 'null' ]]; then
TOX=""
elif tox -l |grep -q "${TOX_ENV}"; then
TOX="tox -r -e ${TOX_ENV} --"
else
TOX=""
echo "${TOX_ENV} is not currently supported. Please review the"
echo "tox.ini file to see which environments are supported"
exit 1
fi
PAVER_ARGS="-v"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment