summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2021-11-06 08:08:35 -0400
committerAllen Winter <allen.winter@kdab.com>2021-11-06 08:08:35 -0400
commit00066d648b7423314676ba5e89864602ef0cc4ae (patch)
tree95047f32d0c12b2dc3869b3597e6fe821f9f48ba /appveyor.yml
parent87639433ac8107223f17fbdfad90439a4c46bb1c (diff)
downloadlibical-git-00066d648b7423314676ba5e89864602ef0cc4ae.tar.gz
appveyor.yml - add more configs and platforms. modernize
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml34
1 files changed, 19 insertions, 15 deletions
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