travis: Define a Windows build test using MinGW
This commit is contained in:
@@ -37,3 +37,5 @@ matrix:
|
|||||||
include:
|
include:
|
||||||
- compiler: gcc
|
- compiler: gcc
|
||||||
env: TEST=dist
|
env: TEST=dist
|
||||||
|
- compiler: gcc
|
||||||
|
env: TEST=win MONOLITHIC=yes
|
||||||
|
|||||||
+18
-2
@@ -50,6 +50,22 @@ all)
|
|||||||
libnm-glib-dev libnm-glib-vpn-dev libpcsclite-dev libpam0g-dev
|
libnm-glib-dev libnm-glib-vpn-dev libpcsclite-dev libpam0g-dev
|
||||||
binutils-dev libunwind7-dev libjson0-dev"
|
binutils-dev libunwind7-dev libjson0-dev"
|
||||||
;;
|
;;
|
||||||
|
win)
|
||||||
|
CONFIG="--host=x86_64-w64-mingw32 --disable-defaults --enable-svc --enable-ikev2
|
||||||
|
--enable-ikev1 --enable-static --enable-test-vectors --enable-nonce
|
||||||
|
--enable-constraints --enable-revocation --enable-pem --enable-pkcs1
|
||||||
|
--enable-pkcs8 --enable-x509 --enable-pubkey --enable-acert
|
||||||
|
--enable-eap-tnc --enable-eap-ttls --enable-eap-identity
|
||||||
|
--enable-tnccs-20 --enable-imc-attestation --enable-imv-attestation
|
||||||
|
--enable-imc-os --enable-imv-os --enable-tnc-imv --enable-tnc-imc
|
||||||
|
--enable-pki --enable-swanctl"
|
||||||
|
# no make check for Windows binaries
|
||||||
|
TARGET=
|
||||||
|
CFLAGS="$CFLAGS -mno-ms-bitfields"
|
||||||
|
DEPS="gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64 gcc-mingw-w64-base
|
||||||
|
mingw-w64-dev"
|
||||||
|
CC="x86_64-w64-mingw32-gcc"
|
||||||
|
;;
|
||||||
dist)
|
dist)
|
||||||
TARGET=distcheck
|
TARGET=distcheck
|
||||||
;;
|
;;
|
||||||
@@ -70,5 +86,5 @@ CONFIG="$CONFIG
|
|||||||
--enable-monolithic=${MONOLITHIC-no}
|
--enable-monolithic=${MONOLITHIC-no}
|
||||||
--enable-leak-detective=${LEAK_DETECTIVE-no}"
|
--enable-leak-detective=${LEAK_DETECTIVE-no}"
|
||||||
|
|
||||||
echo "$ ./configure $CONFIG && make $TARGET"
|
echo "$ CC="$CC" CFLAGS="$CFLAGS" ./configure $CONFIG && make $TARGET"
|
||||||
CFLAGS="$CFLAGS" ./configure $CONFIG && make -j4 $TARGET
|
CC="$CC" CFLAGS="$CFLAGS" ./configure $CONFIG && make -j4 $TARGET
|
||||||
|
|||||||
Reference in New Issue
Block a user