]> err.no Git - yubikey-personalization/commitdiff
travis for windows builds
authorKlas Lindfors <klas@yubico.com>
Thu, 20 Sep 2012 08:51:09 +0000 (10:51 +0200)
committerKlas Lindfors <klas@yubico.com>
Thu, 20 Sep 2012 08:51:09 +0000 (10:51 +0200)
.travis.yml
build-and-test.sh [new file with mode: 0755]

index 0bba9e441b8179f070ab373248de4979894964ff..3c3d639ae904ef416b8566d2aa40acc168c42b71 100644 (file)
@@ -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 (executable)
index 0000000..b77de38
--- /dev/null
@@ -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