Merge pull request #132 from nielsAD/master
[libffi.git] / .travis.yml
index 1a6a425..6c14fcd 100644 (file)
@@ -1,8 +1,22 @@
-language: c
+language: cpp
 compiler:
   - gcc
   - clang
+env:
+  -
+  - HOST=i386-pc-linux-gnu
+matrix:
+  exclude:
+    - compiler: clang
+      env: HOST=i386-pc-linux-gnu
 
-before_script: sudo apt-get install dejagnu
+before_script:
+  - 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
 
-script: ./configure && make && make check
+script:
+  - ./autogen.sh
+  - ./configure ${HOST+--host=$HOST}
+  - make
+  - make dist
+  - make check