]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add a MinGW test compile to the Travis test matrix
authorAnders Björklund <anders@itension.se>
Fri, 4 Mar 2016 09:44:43 +0000 (10:44 +0100)
committerAnders Björklund <anders@itension.se>
Fri, 4 Mar 2016 11:25:58 +0000 (12:25 +0100)
Actually *running* the check (quicktest or the full test)
requires that WINE is installed too, which is a bit heavy.

Note that you would need to also install "binfmt-support",
so that Linux knows how to execute the .exe files (wine).

.travis.yml

index 5073c9cfee243b92966e05d7576b9635b95855bb..5f920b88d5705a75536fcff4d196a3982a681106 100644 (file)
@@ -5,6 +5,8 @@ addons:
         packages:
             - elfutils
             - zlib1g-dev
+            - gcc-mingw-w64-i686
+            - binutils-mingw-w64-i686
 
 os:
     - linux
@@ -15,16 +17,21 @@ compiler:
     - gcc
 
 matrix:
+    include:
+        - os: linux
+          compiler: gcc
+          env: HOST="--host=i686-w64-mingw32" TEST="test/main.exe"
     include:
         - os: linux
           compiler: clang
           env: CFLAGS="-fsanitize=address -g" ASAN_OPTIONS="detect_leaks=0"
+
     exclude:
         - os: osx
           compiler: gcc
 
 script:
     - ./autogen.sh
-    - ./configure
+    - ./configure $HOST
     - make
-    - make test
+    - make ${TEST:-test}