From 364a578c1df8276c24b25cb2f25dea49fe03abca Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 1 Nov 2018 13:36:13 +0000 Subject: [PATCH] .travis/run.sh: TOXENV variable may list multiple tox envs --- .travis/run.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis/run.sh b/.travis/run.sh index c6c1fea9a..ffb0ef79a 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -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