root / runtests-venvs.sh @ 77fccdd4
History | View | Annotate | Download (2.7 kB)
1 |
#!/bin/bash |
---|---|
2 |
# |
3 |
# |
4 |
# Copyright 2011 GRNET S.A. All rights reserved. |
5 |
# |
6 |
# Redistribution and use in source and binary forms, with or |
7 |
# without modification, are permitted provided that the following |
8 |
# conditions are met: |
9 |
# |
10 |
# 1. Redistributions of source code must retain the above |
11 |
# copyright notice, this list of conditions and the following |
12 |
# disclaimer. |
13 |
# |
14 |
# 2. Redistributions in binary form must reproduce the above |
15 |
# copyright notice, this list of conditions and the following |
16 |
# disclaimer in the documentation and/or other materials |
17 |
# provided with the distribution. |
18 |
# |
19 |
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS |
20 |
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
21 |
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
22 |
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR |
23 |
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
24 |
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
25 |
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
26 |
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
27 |
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
28 |
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
29 |
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
30 |
# POSSIBILITY OF SUCH DAMAGE. |
31 |
# |
32 |
# The views and conclusions contained in the software and |
33 |
# documentation are those of the authors and should not be |
34 |
# interpreted as representing official policies, either expressed |
35 |
# or implied, of GRNET S.A. |
36 |
# |
37 |
|
38 |
set -e |
39 |
|
40 |
rm -rf env |
41 |
virtualenv --no-site-packages -ppython2.6 env |
42 |
source env/bin/activate |
43 |
export PIP_DOWNLOAD_CACHE=/tmp/.pip_cache |
44 |
pip install -r requirements.pip |
45 |
|
46 |
cd snf-common |
47 |
rm -rf build dist |
48 |
python setup.py install |
49 |
cd ../snf-cyclades-app |
50 |
rm -rf build dist |
51 |
python setup.py install |
52 |
cd ../snf-cyclades-gtools |
53 |
rm -rf build dist |
54 |
python setup.py install |
55 |
|
56 |
|
57 |
cd ../env |
58 |
# avoid vncauthproxy errors |
59 |
rm bin/vncauthproxy.py |
60 |
echo "running django tests..." >&2 |
61 |
export SYNNEFO_SETTINGS_DIR=/etc/lala |
62 |
snf-manage test admin api db logic userdata --settings=synnefo.settings.test |
63 |
cd .. |
64 |
deactivate |
65 |
|
66 |
#rm -rf env |
67 |
#virtualenv --no-site-packages -ppython2.7 env |
68 |
#source env/bin/activate |
69 |
#export PIP_DOWNLOAD_CACHE=/tmp/.pip_cache |
70 |
#pip install -r requirements.pip |
71 |
|
72 |
#cd snf-common |
73 |
#rm -rf build dist |
74 |
#python setup.py install |
75 |
#cd ../snf-cyclades-app |
76 |
#rm -rf build dist |
77 |
#python setup.py install |
78 |
#cd ../snf-cyclades-gtools |
79 |
#rm -rf build dist |
80 |
#python setup.py install |
81 |
|
82 |
#cd env |
83 |
## avoid vncauthproxy errors |
84 |
#rm bin/vncauthproxy.py |
85 |
#echo "running django tests..." >&2 |
86 |
#snf-manage test aai admin api db helpdesk invitations logic userdata --settings=synnefo.settings.test |
87 |
#cd .. |
88 |
#deactivate |
89 |
#rm -rf env |