Update travis to test linux 32/64 and osx with a mix of gcc and clang
authorAnthony Green <green@moxielogic.com>
Sun, 4 Sep 2016 13:21:18 +0000 (09:21 -0400)
committerAnthony Green <green@moxielogic.com>
Sun, 4 Sep 2016 13:21:18 +0000 (09:21 -0400)
.travis.yml
.travis/install.sh [new file with mode: 0644]

index 8a63980..8e32d3d 100644 (file)
@@ -1,22 +1,24 @@
 language: cpp
+os:
+  - linux
+  - osx
 compiler:
   - gcc
   - clang
-env:
-  - HOST=i386-pc-linux-gnu
 matrix:
-  exclude:
-    - compiler: clang
+  include:
+    - os: linux
+      compiler: gcc
       env: HOST=i386-pc-linux-gnu
 
-before_script:
-  - sudo apt-get update
-  - sudo apt-get install dejagnu texinfo
-  - if [ "$HOST" = i386-pc-linux-gnu ] ; then sudo apt-get install gcc-multilib g++-multilib && CC="$CC -m32" && CXX="$CXX -m32" ; fi
+install:
+  - ./.travis/install.sh
 
 script:
   - ./autogen.sh
+  - if test x"$HOST" = x"i386-pc-linux-gnu"; then CC="$CC -m32"; CXX="$CXX -m32"; fi
   - ./configure ${HOST+--host=$HOST}
   - make
   - make dist
   - make check
+  - cat */testsuite/libffi.log
diff --git a/.travis/install.sh b/.travis/install.sh
new file mode 100644 (file)
index 0000000..67b5104
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if [[ $TRAVIS_OS_NAME != 'linux' ]]; then
+  brew update
+  # fix an issue with libtool on travis by reinstalling it
+  brew uninstall libtool;
+  brew install libtool dejagnu;
+else
+  sudo apt-get update
+  sudo apt-get install dejagnu texinfo
+  if [ "$HOST" = i386-pc-linux-gnu ] ; then
+      sudo apt-get install gcc-multilib g++-multilib;
+  fi
+fi