Statistics
| Branch: | Tag: | Revision:

root / runtests-venvs.sh @ 2e1e6844

History | View | Annotate | Download (2.7 kB)

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