.travis/run.sh: TOXENV variable may list multiple tox envs

This commit is contained in:
Cosimo Lupo 2018-11-01 13:36:13 +00:00
parent 7059296312
commit 364a578c1d
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482

View File

@ -11,4 +11,10 @@ tox
# re-run all the XML-related tests, this time without lxml but using the
# built-in ElementTree library.
tox -e ${TOXENV:-py}-nolxml -- Tests/ufoLib Tests/misc/etree_test.py Tests/misc/plistlib_test.py
if [ -z "$TOXENV" ]; then
TOXENV="py-nolxml"
else
# strip additional tox envs after the comma, add -nolxml factor
TOXENV="${TOXENV%,*}-nolxml"
fi
tox -e $TOXENV -- Tests/ufoLib Tests/misc/etree_test.py Tests/misc/plistlib_test.py