From ace12db110e565b20f8b1141e62e488b9c4abc8f Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Tue, 18 Dec 2018 12:08:41 +0100 Subject: [PATCH] appveyor: Run Debug builds [skip travis] --- appveyor.yml | 1 + tools/win32/configure.ps1 | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 6e7f09b73..9d1150f72 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,6 +11,7 @@ environment: BOOST_LIBRARYDIR: 'C:\Libraries\boost_1_65_1\lib64-msvc-14.1' BISON_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe' FLEX_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe' + CMAKE_BUILD_TYPE: Debug branches: only: diff --git a/tools/win32/configure.ps1 b/tools/win32/configure.ps1 index 57fc03188..0ea0a50cb 100644 --- a/tools/win32/configure.ps1 +++ b/tools/win32/configure.ps1 @@ -2,6 +2,9 @@ if (-not (Test-Path env:ICINGA2_BUILDPATH)) { $env:ICINGA2_BUILDPATH = '.\build' } +if (-not (Test-Path env:CMAKE_BUILD_TYPE)) { + $env:CMAKE_BUILD_TYPE = 'RelWithDebInfo' +} if (-not (Test-Path "$env:ICINGA2_BUILDPATH")) { mkdir "$env:ICINGA2_BUILDPATH" | out-null } @@ -59,7 +62,7 @@ if (Test-Path CMakeCache.txt) { } & cmake.exe "$sourcePath" ` - -DCMAKE_BUILD_TYPE=RelWithDebInfo ` + -DCMAKE_BUILD_TYPE="$env:CMAKE_BUILD_TYPE" ` -G $env:CMAKE_GENERATOR -DCPACK_GENERATOR=WIX ` -DICINGA2_WITH_MYSQL=OFF -DICINGA2_WITH_PGSQL=OFF ` -DOPENSSL_ROOT_DIR="$env:OPENSSL_ROOT_DIR" ` -- 2.40.0