diff --git a/.travis.yml b/.travis.yml index 26acc91e7..097079ad4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -77,4 +77,4 @@ install: - pip install -U tox "setuptools<34" script: - - tox -v + - ./scripts/ci.sh diff --git a/scripts/ci.sh b/scripts/ci.sh new file mode 100755 index 000000000..982d89223 --- /dev/null +++ b/scripts/ci.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -euo pipefail + +if [[ "$TOXENV" == "pypy" ]]; then + echo "pypy shard detected. invoking workaround for https://github.com/travis-ci/travis-ci/issues/9706" + for test_file in $(/bin/ls -1 tests/test_*.py | grep -v test_integration.py); do + echo "testing ${test_file}" + tox -v "${test_file}" + done +else + tox -v +fi