Merge pull request #1761 from dstufft/parallize-pypy

Parallelize running tests with pytest-xdist
This commit is contained in:
Donald Stufft 2014-04-26 01:17:00 -04:00
commit fe29c3991f
3 changed files with 16 additions and 2 deletions

View File

@ -28,7 +28,7 @@ install:
- pip install --upgrade setuptools
- pip install tox
script: tox
script: .travis/run.sh
branches:
only:

13
.travis/run.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -e
set -x
case $TOXENV in
py32)
tox
;;
*)
tox -- -n 8
;;
esac

View File

@ -5,9 +5,10 @@ envlist =
[testenv]
deps =
pytest
pytest-xdist
mock
scripttest>=1.3
git+https://github.com/pypa/virtualenv@develop#egg=virtualenv
https://github.com/pypa/virtualenv/archive/develop.zip#egg=virtualenv
commands =
py.test []