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 | 7444011e38de415d61ac253b4e8a96d9318f57d3 (patch) | |
tree | 47d09b431a899358bd4448b4f66039176754f7e3 | |
parent | 7aff08b8861c8fc56cd0eb74018061c8712bc7d6 (diff) | |
download | bottle-7444011e38de415d61ac253b4e8a96d9318f57d3.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 |