Skip to content

Commit

Permalink
Invoke test runner once per file for pypy shard.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwlzn committed Jun 9, 2018
1 parent 541a747 commit c46e837
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ install:
- pip install -U tox "setuptools<34"

script:
- tox -v
- ./scripts/ci.sh
14 changes: 14 additions & 0 deletions scripts/ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/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

0 comments on commit c46e837

Please sign in to comment.