Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 37 lines (32 sloc) 960 Bytes
#!/bin/bash
PYTHON_VERSIONS="2.6 2.7 3.1 3.2 3.3"
COMMAND="setup.py test"
STATUS=0
for version in $PYTHON_VERSIONS; do
pybin="python$version"
if [ `which $pybin` ]; then
echo "****************************"
echo "Running tests for Python $version"
echo "****************************"
$pybin $COMMAND
STATUS=$(($STATUS+$?))
else
echo "****************************"
echo "Python $version not found, skipping"
echo "****************************"
fi
done
if [ `which pypy` ]; then
pypyversion=`pypy -c "import sys;print(sys.version).splitlines()[1]"`
echo "**************************************************"
echo "Running tests for PyPy $pypyversion"
echo "**************************************************"
pypy $COMMAND
STATUS=$(($STATUS+$?))
fi
echo
if [ $STATUS -eq 0 ]; then
echo "All versions OK"
else
echo "One or more versions FAILED"
fi