-
Notifications
You must be signed in to change notification settings - Fork 17
/
runtests
executable file
·60 lines (48 loc) · 1.26 KB
/
runtests
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env bash
cd `dirname $0`
source virtualenvwrapper.sh
function check_worked {
if ! $*
then
exit 1
fi
}
workon slumber1-3
cd test-projects/django1_3
echo Django 1.3
check_worked python -tt manage.py test slumber_examples
cd ../..
check_worked pylint --rcfile=pylintrc slumber
# workon slumber1-3_psycopg2-4-1
# cd ./test-projects/django1_3_psycopg2_4_1
# echo Django 1.3 with psycopg 2.4.1
# check_worked python -tt manage.py test slumber_examples
# cd ../..
workon slumber1-4
cd test-projects/django1_4
echo Django 1.4
check_worked python manage.py test slumber_examples
# workon slumber1-4_psycopg2-4-1
# cd test-projects/django1_4_psycopg2_4_1
# echo Django 1.4 with psycopg 2.4.1
# check_worked python manage.py test slumber_examples
workon slumber1-5
cd ../django1_5
echo Django 1.5
check_worked python manage.py test slumber_examples
workon slumber1-6
cd ../django1_6
echo Django 1.6
check_worked python manage.py test slumber_examples
workon slumber1-7
cd ../django1_7
echo Django 1.7
check_worked python manage.py test slumber_examples
workon slumber1-0
cd ../django1_0
echo Django 1.0
check_worked python manage.py test slumber_examples
workon slumber1-8
cd ../django1_8
echo Django 1.8
check_worked python manage.py test slumber_examples.tests