From: Klas Lindfors Date: Thu, 20 Sep 2012 08:51:09 +0000 (+0200) Subject: travis for windows builds X-Git-Tag: v1.8.0~25 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6431f16b965347673648d3b147e4cfebd1ac4df1;p=yubikey-personalization travis for windows builds --- diff --git a/.travis.yml b/.travis.yml index 0bba9e4..3c3d639 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,14 @@ compiler: 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 diff --git a/build-and-test.sh b/build-and-test.sh new file mode 100755 index 0000000..b77de38 --- /dev/null +++ b/build-and-test.sh @@ -0,0 +1,18 @@ +#!/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