-
Notifications
You must be signed in to change notification settings - Fork 20
/
runtests
executable file
·55 lines (45 loc) · 1.12 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
#!/usr/bin/env bash
cd `dirname $0`
source virtualenvwrapper.sh
# virtualenvwrapper doesn't work with "set -e
function check_worked {
if ! $*
then
exit 1
fi
}
workon async_1.9
cd test-projects/django_1_9
echo Django 1.9
check_worked python manage.py test async
check_worked pylint --rcfile=../../pylintrc --output-format=colorized ../../async
workon async_1.10
cd ../django_1_10
echo Django 1.10
check_worked python manage.py test async
workon async_1.11
cd ../django_1_11
echo Django 1.11
check_worked python manage.py test async
workon async_1.3
cd ../django_1_3
echo Django 1.3
check_worked python -tt manage.py test async
workon async_1.8
cd ../django_1_8
echo Django 1.8
check_worked python manage.py test async
workon async_1.7
cd ../django_1_7
echo Django 1.7
check_worked python manage.py test async
workon async_1.4
cd ../django_1_4
echo "Django 1.4 (USE_TZ=False)"
check_worked python manage.py test async
echo "Django 1.4 (USE_TZ=True)"
check_worked python manage.py test --settings=django_1_4.settings.usetz async
workon async_1.0
cd ../django_1_0
echo "Django 1.0"
check_worked python manage.py test d1