summaryrefslogtreecommitdiffstats
path: root/testsuite/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/install.sh')
-rwxr-xr-xtestsuite/install.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/install.sh b/testsuite/install.sh
new file mode 100755
index 000000000..494a6f0a1
--- /dev/null
+++ b/testsuite/install.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# install script for Travis-CI
+
+pip install -r testsuite/requirements.txt --use-mirrors
+
+if [[ "$WITH_OPTIONAL_DEPS" == "yes" ]]; then
+ pip install --use-mirrors genshi cheetah django<1.4 M2Crypto
+else
+ # python < 2.6 requires M2Crypto for SSL communication, not just
+ # for encryption support
+ PYVER=$(python -c 'import sys;print ".".join(str(v) for v in sys.version_info[0:2])')
+ if [[ $PYVER == "2.5" || $PYVER == "2.4" ]]; then
+ pip install --use-mirrors M2crypto
+ fi
+fi