summaryrefslogtreecommitdiffstats
path: root/testsuite/install.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/install.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/install.sh')
-rwxr-xr-xtestsuite/install.sh44
1 files changed, 24 insertions, 20 deletions
diff --git a/testsuite/install.sh b/testsuite/install.sh
index eb569ec56..13a2e9d01 100755
--- a/testsuite/install.sh
+++ b/testsuite/install.sh
@@ -1,31 +1,35 @@
#!/bin/bash -ex
# install script for Travis-CI
-pip install --upgrade pip
-
-pip_wheel() {
- pip wheel --find-links="$HOME/.cache/wheels/" --wheel-dir="$HOME/.cache/wheels/" "$@"
- pip install --no-index --find-links="$HOME/.cache/wheels/" "$@"
-}
-
-pip_wheel -r testsuite/requirements.txt
-
PYVER=$(python -c 'import sys;print(".".join(str(v) for v in sys.version_info[0:2]))')
-if [[ ${PYVER:0:1} == "2" && $PYVER != "2.7" ]]; then
- pip_wheel unittest2
-fi
+if [[ ${PYVER:0:1} == "2" && $PYVER != "2.7" && $PYVER != "2.6" ]]; then
+ pip install -r testsuite/requirements-legacy.txt
+else
+ pip install --upgrade pip
+
+ pip_wheel() {
+ pip wheel --find-links="$HOME/.cache/wheels/" --wheel-dir="$HOME/.cache/wheels/" "$@"
+ pip install --no-index --find-links="$HOME/.cache/wheels/" "$@"
+ }
-if [[ "$WITH_OPTIONAL_DEPS" == "yes" ]]; then
- pip_wheel PyYAML pyinotify boto pylibacl Jinja2 mercurial guppy cherrypy python-augeas
+ pip_wheel -r testsuite/requirements.txt
- if [[ ${PYVER:0:1} == "2" ]]; then
- pip_wheel cheetah m2crypto
+ if [[ $PYVER == "2.6" ]]; then
+ pip_wheel unittest2
+ fi
- if [[ $PYVER != "2.7" ]]; then
- pip_wheel 'django<1.7' 'South<0.8'
- else
- pip_wheel django
+ if [[ "$WITH_OPTIONAL_DEPS" == "yes" ]]; then
+ pip_wheel PyYAML pyinotify boto pylibacl Jinja2 mercurial guppy cherrypy python-augeas
+
+ if [[ ${PYVER:0:1} == "2" ]]; then
+ pip_wheel cheetah m2crypto
+
+ if [[ $PYVER != "2.7" ]]; then
+ pip_wheel 'django<1.7' 'South<0.8'
+ else
+ pip_wheel django
+ fi
fi
fi
fi