Commit 912afb62 authored by Matthew Iversen's avatar Matthew Iversen

Move tests.sh to a tox config

--HG--
extra : source : 0d6a065483104cc9781a3ff72c168f059ec11036
parent dc212fd1
#!/bin/sh
echo -n "Running tests for Python 2.4..."
python2.4 setup.py -q test > /dev/null 2> /dev/null
if [ $? -ne 0 ];then
echo "Failed"
exit $1
else
echo "Success"
fi
echo -n "Running tests for Python 2.5..."
python2.5 setup.py -q test > /dev/null 2> /dev/null
if [ $? -ne 0 ];then
echo "Failed"
exit $1
else
echo "Success"
fi
echo -n "Running tests for Python 2.6..."
python2.6 setup.py -q test > /dev/null 2> /dev/null
if [ $? -ne 0 ];then
echo "Failed"
exit $1
else
echo "Success"
fi
echo -n "Running tests for Python 2.7..."
python2.7 setup.py -q test > /dev/null 2> /dev/null
if [ $? -ne 0 ];then
echo "Failed"
exit $1
else
echo "Success"
fi
rm -rf build
echo -n "Running tests for Python 3.1..."
python3.1 setup.py -q test > /dev/null 2> /dev/null
if [ $? -ne 0 ];then
echo "Failed"
exit $1
else
echo "Success"
fi
rm -rf build
echo -n "Running tests for Python 3.2..."
python3.2 setup.py -q test > /dev/null 2> /dev/null
if [ $? -ne 0 ];then
echo "Failed"
exit $1
else
echo "Success"
fi
rm -rf build
echo -n "Running tests for Python 3.3..."
python3.3 setup.py -q test > /dev/null 2> /dev/null
if [ $? -ne 0 ];then
echo "Failed"
exit $1
else
echo "Success"
fi
[tox]
envlist = py26,py27,py31,py32,py33,py34
[testenv]
deps=pytest
commands=py.test
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment