From 00066d648b7423314676ba5e89864602ef0cc4ae Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Sat, 6 Nov 2021 08:08:35 -0400 Subject: appveyor.yml - add more configs and platforms. modernize --- appveyor.yml | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'appveyor.yml') diff --git a/appveyor.yml b/appveyor.yml index d32c2bc2..109f97b8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,6 +20,9 @@ skip_tags: false # Build worker image image: - Visual Studio 2013 + - Visual Studio 2019 + - macos + - Ubuntu # scripts that are called at very beginning, before repo cloning init: @@ -31,21 +34,25 @@ init: # build platform, i.e. x86, x64, Any CPU. This setting is optional. platform: -# - x86 uses 32bit time_t - - x64 + - Any CPU # build Configuration, i.e. Debug, Release, etc. configuration: - - 2013 -# - 2012 -# - MinGW + - Release + - Debug + +install: + - sh: if [ "`uname -s`" = "Darwin" ]; then brew install ninja; fi build_script: - - call scripts\set_compiler_env.bat - mkdir build - cd build - - if "%configuration%" EQU "MinGW" ( cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DICAL_GLIB=False .. ) else ( cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DICAL_GLIB=False .. ) - - nmake + - cmd: cmake -G Ninja -DCMAKE_BUILD_TYPE=%CONFIGURATION% .. + - sh: cmake -G Ninja -DCMAKE_BUILD_TYPE=$CONFIGURATION .. + - cmake --build . + - cmd: cmake --build . --target install + - sh: sudo cmake --build . --target install + - ctest --test-dir . # to disable automatic builds #build: off @@ -54,12 +61,8 @@ build_script: # tests configuration # #---------------------------------# -test_script: - - nmake test - # to disable automatic tests -#test: off - +test: off #---------------------------------# # deployment configuration # @@ -74,5 +77,6 @@ notifications: # Email - provider: Email to: - - allen.winter@kdab.com - on_build_status_changed: true + - winter@kde.org + on_build_success: false + on_build_failure: true -- cgit v1.2.1