diff options
author | Marcel Hellkamp <marc@gsites.de> | 2014-02-07 06:29:14 -0600 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2014-02-07 06:29:14 -0600 |
commit | baf8079216ad358ebca73beac82ec90cdde534e5 (patch) | |
tree | a7f4dd574ec04bcbb327e6f205293b7402b467c7 | |
parent | 4974e46e23cfb71b9ec892d2efc87ca9df4419aa (diff) | |
download | bottle-baf8079216ad358ebca73beac82ec90cdde534e5.tar.gz |
Added travis configuration
-rw-r--r-- | .travis.yml | 19 | ||||
-rwxr-xr-x | test/travis_setup.sh | 16 |
2 files changed, 35 insertions, 0 deletions
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 |