From: Anders Björklund Date: Fri, 4 Mar 2016 09:44:43 +0000 (+0100) Subject: Add a MinGW test compile to the Travis test matrix X-Git-Tag: v3.3~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec41946803b604706e1371c65b15be372373da7e;p=thirdparty%2Fccache.git Add a MinGW test compile to the Travis test matrix 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). --- diff --git a/.travis.yml b/.travis.yml index 5073c9cfe..5f920b88d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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}