Permalink
Browse files

Change Django version.

  • Loading branch information...
Felipe Prenholato
Felipe Prenholato committed Nov 26, 2012
1 parent 176b354 commit dce601363e134b3124e19e45f1342c5c1db5754f
Showing with 33 additions and 1 deletion.
  1. +1 −1 requirements.txt
  2. +32 −0 runtests.sh
View
@@ -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
@@ -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

0 comments on commit dce6013

Please sign in to comment.