From 6431f16b965347673648d3b147e4cfebd1ac4df1 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Thu, 20 Sep 2012 10:51:09 +0200 Subject: [PATCH] travis for windows builds --- .travis.yml | 12 ++++++++++-- build-and-test.sh | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100755 build-and-test.sh 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 -- 2.39.5