Refactor the Travis running into a shell command

This commit is contained in:
Donald Stufft 2014-04-26 00:56:07 -04:00
parent 79bda14bed
commit 8d9041446f
3 changed files with 14 additions and 5 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

@ -9,10 +9,6 @@ deps =
mock
scripttest>=1.3
https://github.com/pypa/virtualenv/archive/develop.zip#egg=virtualenv
commands =
py.test -n 8 []
[testenv:py32]
commands =
py.test []