From b7031472bb5f1acfbfb5a12f04fab000f0b521e9 Mon Sep 17 00:00:00 2001 From: Marcel Hellkamp Date: Fri, 7 Feb 2014 06:29:14 -0600 Subject: Added travis configuration --- .travis.yml | 19 +++++++++++++++++++ test/travis_setup.sh | 16 ++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .travis.yml create mode 100755 test/travis_setup.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b728267 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: python + +python: + - "2.6" + - "2.7" + - "3.2" + - "3.3" + +matrix: + include: + - python: 2.7 + env: PY=2.5 + - python: 2.7 + env: PY=3.1 + +install: + - sh test/travis_setup.sh + +script: python${PY:-} test/testall.py fast diff --git a/test/travis_setup.sh b/test/travis_setup.sh new file mode 100755 index 0000000..7c63b2c --- /dev/null +++ b/test/travis_setup.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e +set -x + +if test -n "$PY"; then + # https://github.com/pycurl/pycurl/blob/master/tests/travis/setup.sh + sudo add-apt-repository -y ppa:fkrull/deadsnakes + sudo apt-get update + sudo apt-get install python$PY-dev + + if test "$PY" = 2.5; then + wget -O - http://python-distribute.org/distribute_setup.py | sudo python$PY + sudo easy_install-$PY simplejson + fi +fi -- cgit v1.2.1