From 5a2fdd92346305d3b6992ee379f258323557d5c1 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Sun, 19 Aug 2018 10:22:30 -0400 Subject: appveyor - trying to support more compilers and platforms --- appveyor.yml | 102 +++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 57 insertions(+), 45 deletions(-) (limited to 'appveyor.yml') diff --git a/appveyor.yml b/appveyor.yml index 77e10c2b..82161237 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,9 +1,9 @@ #---------------------------------# -# general configuration # +# general COMPILER # #---------------------------------# # version format -version: 1.0.{build}-{branch} +version: '{build}-{branch}' # branches to build branches: @@ -13,65 +13,77 @@ branches: # Do not build on tags (GitHub and BitBucket) skip_tags: false -#---------------------------------# -# environment configuration # -#---------------------------------# - -# Build worker image -image: - - Visual Studio 2013 - -# scripts that are called at very beginning, before repo cloning init: - git config --global core.autocrlf input -#---------------------------------# -# build configuration # -#---------------------------------# - -# build platform, i.e. x86, x64, Any CPU. This setting is optional. -platform: -# - x86 uses 32bit time_t - - x64 - -# build Configuration, i.e. Debug, Release, etc. -configuration: -# - 2015 - - 2013 - - 2012 -# - MinGW -#todo: 2010, 2008 +clone_folder: c:\dev\libical + +environment: + matrix: + - CMAKE_GENERATOR: "NMake Makefiles" + PLATFORM: X86 + COMPILER: msvc2008 + - CMAKE_GENERATOR: "Ninja" + PLATFORM: X86 + COMPILER: msvc2013 + - CMAKE_GENERATOR: "Ninja" + PLATFORM: X64 + COMPILER: msvc2013 + - CMAKE_GENERATOR: "Ninja" + PLATFORM: X86 + COMPILER: msvc2015 + - CMAKE_GENERATOR: "Ninja" + PLATFORM: X64 + COMPILER: msvc2015 + - CMAKE_GENERATOR: "Visual Studio 12" + PLATFORM: X86 + COMPILER: msvc2013 + - CMAKE_GENERATOR: "Visual Studio 12 Win64" + PLATFORM: X64 + COMPILER: msvc2013 + - CMAKE_GENERATOR: "Visual Studio 14" + PLATFORM: X86 + COMPILER: msvc2015 + - CMAKE_GENERATOR: "Visual Studio 14 Win64" + PLATFORM: X64 + COMPILER: msvc2015 + - CMAKE_GENERATOR: "NMake Makefiles JOM" + PLATFORM: X86 + COMPILER: msvc2013 + - CMAKE_GENERATOR: "NMake Makefiles JOM" + PLATFORM: X64 + COMPILER: msvc2013 + - CMAKE_GENERATOR: "NMake Makefiles JOM" + PLATFORM: X86 + COMPILER: msvc2015 + - CMAKE_GENERATOR: "NMake Makefiles JOM" + PLATFORM: X64 + COMPILER: msvc2015 + - CMAKE_GENERATOR: "MinGW Makefiles" + PLATFORM: X64 + COMPILER: MinGW + +matrix: + fast_finish: true build_script: - call scripts\set_compiler_env.bat + - cd c:\dev\libical - 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 + - cmake .. -G "%CMAKE_GENERATOR" -DGOBJECT_INTROSPECTION=False -DICAL_GLIB=False -DICAL_BUILD_DOCS=False + - cmake --build . --config Debug + - cmake --build . --config Release # to disable automatic builds #build: off -#---------------------------------# -# tests configuration # -#---------------------------------# - test_script: - - nmake test - -# to disable automatic tests -#test: off - - -#---------------------------------# -# deployment configuration # -#---------------------------------# + - cmd: ctest --output-on-failure -C "Debug" + - cmd: ctest --output-on-failure -C "Release" deploy: off -#---------------------------------# -# notifications # -#---------------------------------# notifications: # Email - provider: Email -- cgit v1.2.1