forked from mbi/django-simple-captcha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtests_multi_venv.sh
102 lines (90 loc) · 2.43 KB
/
runtests_multi_venv.sh
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/bin/bash
# You'll have to create three virtualenvs and pip install PIL and django 1.3, 1.4 and 1.5 in either one.
# .venv_15_p3 tests against Django 1.5 and Python 3.3
export CAPTCHA_FLITE_PATH=`which flite`
if [ ! -d .venv_13 ]
then
virtualenv --no-site-packages --distribute --python=python2 .venv_13
source .venv_13/bin/activate
pip install Django==1.3 Pillow==2.0.0 coverage six
deactivate
fi
if [ ! -d .venv_14 ]
then
virtualenv --no-site-packages --distribute --python=python2 .venv_14
source .venv_14/bin/activate
pip install Django==1.4 Pillow==2.0.0 coverage six
deactivate
fi
if [ ! -d .venv_15 ]
then
virtualenv --no-site-packages --distribute --python=python2 .venv_15
source .venv_15/bin/activate
pip install Django==1.5 Pillow==2.0.0 coverage six
deactivate
fi
if [ ! -d .venv_15_p3 ]
then
virtualenv --no-site-packages --distribute --python=python3 .venv_15_p3
source .venv_15_p3/bin/activate
pip install Django==1.5 Pillow==2.0.0 coverage six
deactivate
fi
if [ ! -d .venv_16 ]
then
virtualenv --no-site-packages --distribute --python=python2 .venv_16
source .venv_16/bin/activate
pip install https://github.com/django/django/archive/1.6b1.zip
pip install Pillow==2.0.0 coverage six
deactivate
fi
if [ ! -d .venv_16_p3 ]
then
virtualenv --no-site-packages --distribute --python=python3 .venv_16_p3
source .venv_16_p3/bin/activate
pip install https://github.com/django/django/archive/1.6b1.zip
pip install Pillow==2.0.0 coverage six
deactivate
fi
source .venv_13/bin/activate
cd testproject
echo 'Django' `python manage.py --version`
python --version
python manage.py test captcha
cd ..
deactivate
source .venv_14/bin/activate
cd testproject
echo 'Django' `python manage.py --version`
python --version
python manage.py test captcha
cd ..
deactivate
source .venv_15/bin/activate
cd testproject
echo 'Django' `python manage.py --version`
python --version
python manage.py test captcha
cd ..
deactivate
source .venv_15_p3/bin/activate
cd testproject
echo 'Django' `python manage.py --version`
python --version
python manage.py test captcha
cd ..
deactivate
source .venv_16/bin/activate
cd testproject
echo 'Django' `python manage.py --version`
python --version
python manage.py test captcha
cd ..
deactivate
source .venv_16_p3/bin/activate
cd testproject
echo 'Django' `python manage.py --version`
python --version
python manage.py test captcha
cd ..
deactivate