Skip to content

Commit

Permalink
Use pytest-xdist for parallel execution of tests in travis (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogalski authored and PCManticore committed Dec 30, 2016
1 parent d23b8ca commit 796b169
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -31,7 +31,9 @@ script:
- pip install .
# Run the tests with newest version of setuptools
- pip install -U setuptools
- tox -e coverage-erase,$TOXENV
# pypy is very slow with multiple processes due too long startup time
- if [ $TOXENV == "pypy" ]; then POSARGS=""; else POSARGS="-n 4"; fi
- tox -e coverage-erase,$TOXENV -- $POSARGS
after_success:
- tox -e coveralls
after_failure:
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -16,6 +16,7 @@ deps =
isort
mccabe
pytest
pytest-xdist

setenv =
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
Expand Down

0 comments on commit 796b169

Please sign in to comment.