Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change Django version.

  • Loading branch information...
commit dce601363e134b3124e19e45f1342c5c1db5754f 1 parent 176b354
Felipe Prenholato authored
Showing with 33 additions and 1 deletion.
  1. +1 −1  requirements.txt
  2. +32 −0 runtests.sh
View
2  requirements.txt
@@ -1,3 +1,3 @@
-Django>=1.2.7
+Django>=1.3.4
xlrd # support for read excel xls files
openpyxl # support for read excel xlsx files
View
32 runtests.sh
@@ -0,0 +1,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
Please sign in to comment.
Something went wrong with that request. Please try again.