From c38f8128b5f3edc6fb84b628696c6a14450f98fe Mon Sep 17 00:00:00 2001 From: Marco Bonetti Date: Fri, 1 Mar 2013 14:53:37 +0100 Subject: [PATCH] have the test scripts create and provision the virtual envs --- runtests.sh | 9 +++++++++ runtests_coverage.sh | 8 ++++++++ runtests_multi_venv.sh | 31 +++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/runtests.sh b/runtests.sh index c8c5d0e..c028c6a 100644 --- a/runtests.sh +++ b/runtests.sh @@ -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 diff --git a/runtests_coverage.sh b/runtests_coverage.sh index 7b9f91a..4748d40 100644 --- a/runtests_coverage.sh +++ b/runtests_coverage.sh @@ -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 diff --git a/runtests_multi_venv.sh b/runtests_multi_venv.sh index e8801f2..b1e275e 100644 --- a/runtests_multi_venv.sh +++ b/runtests_multi_venv.sh @@ -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