env:
- LIBUSB=libusb
- LIBUSB=libusb-1.0
-script: autoreconf -i && ./configure --with-backend=$LIBUSB && make check
+ - LIBUSB=win32
+ - LIBUSB=win64
+script: ./build-and-test
before_install:
- - sudo apt-get install -qq libyubikey-dev libusb-1.0-0-dev libusb-dev
+ - sudo apt-get install -qq libyubikey-dev libusb-1.0-0-dev libusb-dev wine mingw-w64
+matrix:
+ exclude:
+ - compiler: clang
+ env: LIBUSB=win32
+ - compiler: clang
+ env: LIBUSB=win64
--- /dev/null
+#!/bin/sh
+
+set -e
+
+autoreconf -i
+
+if [ "x$LIBUSB" = "xwin32" ]; then
+ ./configure
+ make dist
+ make -f ykpers4win.mk ykpers4win32
+elif [ "x$LIBUSB" = "xwin64" ]; then
+ ./configure
+ make dist
+ make -f ykpers4win.mk ykpers4win64
+else
+ ./configure --with-backend=$LIBUSB
+ make check
+fi