From 8d3a9a3729277be74f309f78b536ad61c39213f1 Mon Sep 17 00:00:00 2001 From: Don Date: Mon, 19 Mar 2018 18:29:00 -0700 Subject: Add appveyor support for Window CI/CD --- appveyor.yml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..f7ada7f --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,51 @@ +environment: + PATH: C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Windows\System32;C:\Windows;%PATH% + VSTEST: OFF + + matrix: + # x86 builds + - GENERATOR: Visual Studio 14 2015 + CONFIG: Release + SHARED_LIBS: ON + - GENERATOR: Visual Studio 14 2015 + CONFIG: Release + SHARED_LIBS: OFF + - GENERATOR: Visual Studio 14 2015 + CONFIG: Debug + SHARED_LIBS: ON + - GENERATOR: Visual Studio 14 2015 + CONFIG: Debug + SHARED_LIBS: ON + + # x64 builds + - GENERATOR: Visual Studio 14 2015 Win64 + CONFIG: Release + SHARED_LIBS: ON + - GENERATOR: Visual Studio 14 2015 Win64 + CONFIG: Release + SHARED_LIBS: OFF + - GENERATOR: Visual Studio 14 2015 Win64 + CONFIG: Debug + SHARED_LIBS: ON + - GENERATOR: Visual Studio 14 2015 Win64 + CONFIG: Debug + SHARED_LIBS: ON + +init: + # update mysy2 + - C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors" + - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy" + - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S autoconf perl" + - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S git" + +before_build: + - bash autogen.sh + - mkdir build + - cd build + - cmake .. -G "%GENERATOR%" -DBUILD_SHARED=%SHARED_LIBS% -DENABLE_VSTEST=%VSTEST% + +build_script: + - cmake --build . --config %CONFIG% + +test_script: + - ctest -- cgit v1.2.3-55-g6feb