Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.1.0-p2
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 33 lines (24 sloc) 0.741 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
#!/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
Something went wrong with that request. Please try again.