.travis.yml: Test on both 32-bit and 64-bit
authorJosh Triplett <josh@joshtriplett.org>
Sun, 16 Mar 2014 06:27:56 +0000 (23:27 -0700)
committerJosh Triplett <josh@joshtriplett.org>
Sun, 16 Mar 2014 11:53:41 +0000 (04:53 -0700)
.travis.yml

index c321813..5d8b048 100644 (file)
@@ -2,7 +2,16 @@ language: c
 compiler:
   - gcc
   - clang
+env:
+  - build32=false
+  - build32=true
+matrix:
+  exclude:
+    - compiler: clang
+      env: build32=true
 
-before_script: sudo apt-get install dejagnu texinfo
+before_script:
+  - sudo apt-get install dejagnu texinfo
+  - if $build32 ; then sudo apt-get install gcc-multilib g++-multilib ; fi
 
-script: ./autogen.sh && ./configure && make && make check
+script: run= && if $build32 ; then run=i386 && mkdir path32 && PATH="$(pwd)/path32:$PATH" && printf '#!/bin/sh\nexec /usr/bin/'"$CC"' -m32 "$@"' > "path32/$CC" && chmod a+x "path32/$CC" ; fi && ./autogen.sh && $run ./configure && make && make check