Use tox in .travis.yml

This commit is contained in:
Takafumi Arakaki
2013-03-12 08:03:55 +01:00
parent 13b48632e5
commit 88adcbcf8a

View File

@@ -5,13 +5,9 @@ python:
- 2.7 - 2.7
- 3.2 - 3.2
install: install:
- if [[ $TRAVIS_PYTHON_VERSION == '2.5' ]]; then - pip install --use-mirrors tox
pip install --use-mirrors simplejson unittest2;
fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then
pip install --use-mirrors unittest2;
fi
- pip install --use-mirrors nose
script: script:
- cd test - export TOXENV=$(echo "$TRAVIS_PYTHON_VERSION" |
- ./test.sh sed --regexp-extended 's/([0-9])\.([0-9])/py\1\2/g')
- echo "TOXENV=$TOXENV"
- tox