- LIBUSB=libusb EXTRA=libusb-dev
- LIBUSB=libusb-1.0 EXTRA=libusb-1.0-0-dev
script:
- - autoreconf -i
- - ./configure --with-backend=$LIBUSB
- - make check
+ - ./build-and-test.sh
before_install:
- sudo apt-get install -qq libyubikey-dev $EXTRA
matrix:
include:
- - compiler: i586-mingw32msvc-gcc
+ - compiler: gcc
env: LIBUSB=windows EXTRA=wine
autoreconf -i
-if [ "x$LIBUSB" = "xwin32" ]; then
+if [ "x$LIBUSB" = "xwindows" ]; then
./configure --with-backend=stub
touch ChangeLog
make dist
- make -f ykpers4win.mk ykpers4win32
-elif [ "x$LIBUSB" = "xwin64" ]; then
- ./configure --with-backend=stub
- touch ChangeLog
- make dist
- make -f ykpers4win.mk ykpers4win64
+ make -f ykpers4win.mk ykpers4win32mingw32
else
./configure --with-backend=$LIBUSB
make check
ykpers4win64:
$(MAKE) -f ykpers4win.mk ykpers4win ARCH=64 HOST=x86_64-w64-mingw32 CHECK=check
+ykpers4win32mingw32:
+ CFLAGS=-I/usr/i586-mingw32msvc/include/ddk/ $(MAKE) -f ykpers4win.mk ykpers4win ARCH=32 HOST=i586-mingw32msvc CHECK=check
+
upload-ykpers4win:
gpg --detach-sign --default-key $(PGPKEYID) \
$(PACKAGE)-$(VERSION)-win$(BITS).zip