have the test scripts create and provision the virtual envs

This commit is contained in:
Marco Bonetti 2013-03-01 14:53:37 +01:00
parent 7604c5dbfe
commit c38f8128b5
3 changed files with 48 additions and 0 deletions

View file

@ -1,5 +1,14 @@
#!/bin/bash
if [ ! -d venv_13 ]
then
virtualenv --no-site-packages --distribute --python=python2 venv_13
. venv_13/bin/activate
pip install Django==1.3 coverage python-memcached six
deactivate
fi
. venv_13/bin/activate
cd testproject
python manage.py test rosetta

View file

@ -1,5 +1,13 @@
#!/bin/bash
if [ ! -d venv_13 ]
then
virtualenv --no-site-packages --distribute --python=python2 venv_13
. venv_13/bin/activate
pip install Django==1.3 coverage python-memcached six
deactivate
fi
. venv_13/bin/activate
cd testproject
coverage run --rcfile=.coveragerc manage.py test --failfast rosetta

View file

@ -1,5 +1,36 @@
#!/bin/bash
if [ ! -d venv_13 ]
then
virtualenv --no-site-packages --distribute --python=python2 venv_13
. venv_13/bin/activate
pip install Django==1.3 coverage python-memcached six
deactivate
fi
if [ ! -d venv_14 ]
then
virtualenv --no-site-packages --distribute --python=python2 venv_14
. venv_14/bin/activate
pip install Django==1.4 coverage python-memcached six
deactivate
fi
if [ ! -d venv_15 ]
then
virtualenv --no-site-packages --distribute --python=python2 venv_15
. venv_15/bin/activate
pip install Django==1.5 coverage python-memcached six
deactivate
fi
if [ ! -d venv_15_p3 ]
then
virtualenv --no-site-packages --distribute --python=python3 venv_15_p3
. venv_15_p3/bin/activate
pip install Django==1.5 coverage python3-memcached six
deactivate
fi
. venv_13/bin/activate
cd testproject
python manage.py --version