summaryrefslogtreecommitdiffstats
path: root/testsuite/prepare-python.sh
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2015-07-25 01:32:05 +0200
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2017-03-29 13:29:58 +0200
commitd5f24fed13339d01424c4f7748c239ae33e0b606 (patch)
tree97bf44213c27e4903752d4fb36e7583f531f9af4 /testsuite/prepare-python.sh
parent4f3cb4335c6d934c34d851efa587c525e6fcd876 (diff)
downloadbcfg2-d5f24fed13339d01424c4f7748c239ae33e0b606.tar.gz
bcfg2-d5f24fed13339d01424c4f7748c239ae33e0b606.tar.bz2
bcfg2-d5f24fed13339d01424c4f7748c239ae33e0b606.zip
travis-ci: Also run tests with python2.4 and python2.5
Diffstat (limited to 'testsuite/prepare-python.sh')
-rwxr-xr-xtestsuite/prepare-python.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/prepare-python.sh b/testsuite/prepare-python.sh
new file mode 100755
index 000000000..7b72a6dc4
--- /dev/null
+++ b/testsuite/prepare-python.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -n "$PYTHON" ]; then
+ echo "Try to use custom python version: $PYTHON"
+ pip install 'virtualenv<1.8'
+ mkdir -p "$HOME/custom-virtualenv"
+ virtualenv -p "python$PYTHON" --use-distribute "$HOME/custom-virtualenv"
+fi