From 6b70e18c5f4c4405299e54db7fa80e93dab81f0b Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 21 Aug 2012 09:08:44 -0400 Subject: tweaked travis-ci stuff to build for py2.6, py3k, with/without optional deps --- testsuite/before_install.sh | 8 ++++++++ testsuite/install.sh | 16 ++++++++++++++++ testsuite/requirements.txt | 5 +---- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100755 testsuite/before_install.sh create mode 100755 testsuite/install.sh (limited to 'testsuite') diff --git a/testsuite/before_install.sh b/testsuite/before_install.sh new file mode 100755 index 000000000..25e864fed --- /dev/null +++ b/testsuite/before_install.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# before_install script for Travis-CI + +apt-get update -qq +if [[ "$WITH_OPTIONAL_DEPS" == "yes" ]]; then + apt-get install -qq python-selinux python-pylibacl +fi 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 diff --git a/testsuite/requirements.txt b/testsuite/requirements.txt index f35973976..39418e98b 100644 --- a/testsuite/requirements.txt +++ b/testsuite/requirements.txt @@ -1,7 +1,4 @@ lxml nose -genshi -cheetah -sphinx mock -django<1.4 +sphinx -- cgit v1.2.3-1-g7c22