Update travis for py3

This commit is contained in:
BJ Dierkes 2014-01-21 17:02:43 -06:00
parent a048797c1e
commit 98104c2d60
3 changed files with 17 additions and 4 deletions

10
requirements-dev-py3.txt Normal file
View File

@ -0,0 +1,10 @@
# The following are only required in development, not production
nose
coverage
sphinx
pep8
autopep8
# Required for optional extensions (only the ones supported on py3)
pystache
pyYaml

View File

@ -8,7 +8,5 @@ autopep8
# Required for optional extensions
pystache
pyYaml
# Note that the following will fail to install on py3
configobj
pylibmc

View File

@ -7,7 +7,12 @@ if [ "$PYCHECK" == "True" ]; then
pip install argparse --use-mirrors
fi
pip install -r requirements.txt --use-mirrors
pip install -r requirements-dev.txt --use-mirrors
PYCHECK=$(python -c 'import sys; print(sys.version_info > (3, 0))')
if [ "$PYCHECK" == "True" ]; then
pip install -r requirements-dev-py3.txt --use-mirrors
else
pip install -r requirements-dev.txt --use-mirrors
fi
python setup.py nosetests
exit $?