Commit 3cddb7b9a1df284dfca0b41eb171e4c0b6d8f5d9

Pali Rohár 2020-12-12T01:02:47

Run Travis tests also under i586-mingw32msvc-gcc compiler Beware that i586-mingw32msvc-gcc is sometimes just a symlink to i686-w64-mingw32-gcc. Real i586-mingw32msvc-gcc compiler is available in mingw32 package only in dist trusty.

diff --git a/.travis.yml b/.travis.yml
index 4df8ce7..ebc6834 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,5 +15,18 @@ env:
   - ci_buildsys=cmake
   - ci_buildsys=Makefile
 
+jobs:
+  include:
+    - dist: trusty
+      compiler: i586-mingw32msvc-gcc
+      addons:
+        apt:
+          packages:
+            - mingw32
+            - wine
+      env: ci_buildsys=Makefile
+      # Check that we have a real i586-mingw32msvc-gcc compiler as sometimes it is just a symlink to i686-w64-mingw32-gcc
+      before_script: "i586-mingw32msvc-gcc -v 2>&1 | grep -q -x 'Target: i586-mingw32msvc'"
+
 script:
   - ci_target=${CC%-*} ./tools/ci-build.sh