summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-20 19:20:29 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-20 19:20:29 +0000
commit57ef0099d33468a248c304a4a061d43be058fea9 (patch)
tree7c5221a787723754e26a3499227c265bfb734bc4
parentbbd8f85de49ba3727e9820c7db53e34cdf840a6a (diff)
downloadswig-57ef0099d33468a248c304a4a061d43be058fea9.tar.gz
Add Travis testing for Python 2.4 2.5 2.6 3.4
-rw-r--r--.travis.yml18
1 files changed, 13 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 5d47074e9..7983d0ecd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,11 +23,19 @@ matrix:
- compiler: gcc
env: SWIGLANG=php
- compiler: gcc
- env: SWIGLANG=python
+ env: SWIGLANG=python VER=2.4
- compiler: gcc
- env: SWIGLANG=python PY3=1
+ env: SWIGLANG=python VER=2.5
- compiler: gcc
- env: SWIGLANG=python PY3=1 VER=3.3
+ env: SWIGLANG=python VER=2.6
+ - compiler: gcc
+ env: SWIGLANG=python # 2.7
+ - compiler: gcc
+ env: SWIGLANG=python PY3=3 # 3.2
+ - compiler: gcc
+ env: SWIGLANG=python PY3=3 VER=3.3
+ - compiler: gcc
+ env: SWIGLANG=python PY3=3 VER=3.4
- compiler: gcc
env: SWIGLANG=ruby
- compiler: gcc
@@ -48,10 +56,10 @@ before_install:
- if test "$SWIGLANG" = "octave"; then sudo apt-get -qq install octave3.2 octave3.2-headers; fi
- if test "$SWIGLANG" = "php"; then sudo apt-get install php5-cli php5-dev; fi
- if test "$SWIGLANG" = "python" -a "$PY3" -a -z "$VER"; then sudo apt-get install -qq python3-dev; fi
- - if test "$SWIGLANG" = "python" -a "$VER"; then sudo add-apt-repository -y ppa:fkrull/deadsnakes && sudo apt-get -qq update && sudo apt-get -qq install python${VER}-dev; fi
+ - if test "$SWIGLANG" = "python" -a "$VER"; then sudo add-apt-repository -y ppa:fkrull/deadsnakes && sudo apt-get -qq update && sudo apt-get -qq install python${VER}-dev && export CONFIGOPTS="--with-python${PY3}=python${VER}"; fi
- if test "$SWIGLANG" = "tcl"; then sudo apt-get -qq install tcl8.4-dev; fi
script:
- - ./autogen.sh && ./configure
+ - ./autogen.sh && ./configure $CONFIGOPTS
- make -s $SWIGJOBS
- ./swig -version && ./swig -pcreversion
- if test -z "$SWIGLANG"; then make -s $SWIGJOBS check-ccache; fi