From d0c5fa3ed6cf7b17b581bd15c12fa658e75636fc Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Wed, 1 Aug 2018 10:59:30 -0700 Subject: Add AppVeyor CI for Cygwin --- .appveyor.yml | 19 +++++++++++++++++++ test/appveyor-build.sh | 7 +++++++ 2 files changed, 26 insertions(+) create mode 100644 .appveyor.yml create mode 100755 test/appveyor-build.sh diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..4d6509b --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,19 @@ +version: '{build}' + +install: + +# install WinFsp +- appveyor DownloadFile https://github.com/billziss-gh/winfsp/releases/download/v1.4B2/winfsp-1.4.18211.msi +- for %%f in ("winfsp-*.msi") do start /wait msiexec /i %%f /qn INSTALLLEVEL=1000 + +# install FUSE for Cygwin (64-bit and 32-bit) +- C:\cygwin64\bin\env.exe -i PATH=/bin bash "%ProgramFiles(x86)%\WinFsp\opt\cygfuse\install.sh" +- C:\cygwin\bin\env.exe -i PATH=/bin bash "%ProgramFiles(x86)%\WinFsp\opt\cygfuse\install.sh" + +# install additional Cygwin packages (64-bit and 32-bit) +- C:\cygwin64\setup-x86_64.exe -qnNdO -R C:\cygwin64 -s http://cygwin.mirror.constant.com -l C:\cygwin64\var\cache\setup -P libglib2.0-devel -P meson +- C:\cygwin\setup-x86.exe -qnNdO -R C:\cygwin -s http://cygwin.mirror.constant.com -l C:\cygwin\var\cache\setup -P libglib2.0-devel -P meson + +build_script: +- C:\cygwin64\bin\env.exe -i PATH=/bin bash test\appveyor-build.sh +- C:\cygwin\bin\env.exe -i PATH=/bin bash test\appveyor-build.sh diff --git a/test/appveyor-build.sh b/test/appveyor-build.sh new file mode 100755 index 0000000..31be8bb --- /dev/null +++ b/test/appveyor-build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +machine=$(uname -m) +mkdir build-$machine +cd build-$machine +meson .. +ninja -- cgit v1.2.3