summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-09-20 19:33:37 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-09-20 19:33:37 +0100
commit48f716e9dbdf112b54adea5b3d9ca5a266dceb94 (patch)
treeaafc85303ed0af591b983ae599e3eb3315cc49a7
parent8b3a13129a3976c586f99c93dd8766e93c1211cf (diff)
downloadswig-48f716e9dbdf112b54adea5b3d9ca5a266dceb94.tar.gz
Add .travis.yml file for testing under Travis
-rw-r--r--.travis.yml58
1 files changed, 58 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..26758304f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,58 @@
+language: cpp
+compiler:
+ - clang
+ - gcc
+env:
+ - SWIGLANG=
+matrix:
+ include:
+ - compiler: gcc
+ env: SWIGLANG=csharp
+ - compiler: gcc
+ env: SWIGLANG=go
+ - compiler: gcc
+ env: SWIGLANG=guile
+ - compiler: gcc
+ env: SWIGLANG=java
+ - compiler: gcc
+ env: SWIGLANG=lua
+ - compiler: gcc
+ env: SWIGLANG=octave SWIGJOBS=-j4
+ - compiler: gcc
+ env: SWIGLANG=perl5
+ - compiler: gcc
+ env: SWIGLANG=php
+ - compiler: gcc
+ env: SWIGLANG=python
+ - compiler: gcc
+ env: SWIGLANG=python PY3=1
+ - compiler: gcc
+ env: SWIGLANG=ruby
+ - compiler: gcc
+ env: SWIGLANG=tcl
+ allow_failures:
+ # None
+before_install:
+ - lsb_release -a
+ - uname -a
+ - sudo apt-get -qq update
+ - time sudo apt-get -qq install libboost-dev
+ - if test "$SWIGLANG" = "csharp"; then sudo apt-get -qq install mono-devel; fi
+ - if test "$SWIGLANG" = "go"; then go env | sed -e 's/^/export /' > goenvsetup && source goenvsetup && rm -f goenvsetup; fi # Until configure.ac is fixed
+ - if test "$SWIGLANG" = "guile"; then sudo apt-get -qq install guile-2.0-dev; fi
+ - if test "$SWIGLANG" = "lua"; then sudo apt-get -qq install lua5.1 liblua5.1-dev; fi
+ - 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"; then sudo apt-get install python3-dev; fi
+ - if test "$SWIGLANG" = "tcl"; then sudo apt-get -qq install tcl8.4-dev; fi
+script:
+ - ./autogen.sh && ./configure
+ - make -s $SWIGJOBS
+ - if test -z "$SWIGLANG"; then make -s check-ccache; fi
+ - ./swig -version
+ - if test -n "$SWIGLANG"; then make -s check-$SWIGLANG-version; fi
+ - if test -n "$SWIGLANG"; then make -k $SWIGJOBS check-$SWIGLANG-examples; fi
+ - if test -n "$SWIGLANG"; then make -k $SWIGJOBS check-$SWIGLANG-test-suite; fi
+branches:
+ only:
+ - master