Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v0.1.0-p1
Fetching contributors…

Cannot retrieve contributors at this time

executable file 33 lines (24 sloc) 0.741 kB
#!/bin/bash
echo "This is a helper script to test against many environ versions."
echo "This script test against Django 1.3.x and 1.4.x using sqlite. It depends of pip."
OLD_DJANGO="$(pip freeze | grep Django)"
test_13() {
echo "Testing against Django 1.3.x ..."
pip install -q -U --use-mirrors Django\<1.4.0
python runtests.py --failfast --noinput -v0 && return 0 || return 1
}
test_14() {
echo "Testing against Django 1.4.x ..."
pip install -q -U --use-mirrors Django\<1.5.0
python runtests.py --failfast --noinput -v0 && return 0 || return 1
}
test_13 && test_14
result=$?
if [[ "$OLD_DJANGO" ]];
then
pip install -q -U --use-mirrors "$OLD_DJANGO"
echo "$OLD_DJANGO reinstalled"
else
pip uninstall Django
fi
exit $result
Jump to Line
Something went wrong with that request. Please try again.