2018-02-02 17:22:15 +01:00
|
|
|
---
|
2019-04-04 12:10:23 +02:00
|
|
|
version: 2.11.0.dev.{build}
|
2018-02-02 17:22:15 +01:00
|
|
|
|
2020-10-21 10:53:59 +02:00
|
|
|
os: Visual Studio 2019
|
2018-08-02 14:42:14 +02:00
|
|
|
platform: x64
|
2018-02-02 17:22:15 +01:00
|
|
|
|
|
|
|
environment:
|
2019-04-04 12:10:23 +02:00
|
|
|
BITS: 64
|
|
|
|
CMAKE_BUILD_TYPE: Debug
|
2020-10-21 10:53:59 +02:00
|
|
|
CMAKE_GENERATOR: "Visual Studio 16 2019"
|
|
|
|
CMAKE_GENERATOR_PLATFORM: x64
|
2019-03-11 16:14:41 +01:00
|
|
|
# https://www.appveyor.com/docs/windows-images-software/#boost
|
2020-10-21 10:53:59 +02:00
|
|
|
BOOST_ROOT: 'C:\Libraries\boost_1_71_0'
|
|
|
|
BOOST_LIBRARYDIR: 'C:\Libraries\boost_1_71_0\lib64-msvc-14.2'
|
2019-04-04 12:10:23 +02:00
|
|
|
# https://www.appveyor.com/docs/windows-images-software/#tools
|
|
|
|
OPENSSL_ROOT_DIR: 'C:\OpenSSL-v111-Win64'
|
2018-02-02 17:22:15 +01:00
|
|
|
BISON_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe'
|
|
|
|
FLEX_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe'
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
cache:
|
2018-03-16 15:09:19 +01:00
|
|
|
- build -> appveyor.yml
|
2018-02-02 17:22:15 +01:00
|
|
|
- C:\ProgramData\chocolatey\lib\winflexbison3
|
|
|
|
|
|
|
|
install:
|
|
|
|
- ps: |
|
|
|
|
if (-not (Test-Path "C:\ProgramData\chocolatey\lib\winflexbison3")) {
|
2018-08-02 14:42:14 +02:00
|
|
|
& choco install winflexbison3
|
|
|
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
2018-02-02 17:22:15 +01:00
|
|
|
}
|
|
|
|
|
2018-08-02 14:42:14 +02:00
|
|
|
# why that env handling, see
|
|
|
|
# https://help.appveyor.com/discussions/questions/18777-how-to-use-vcvars64bat-from-powershell#comment_44999171
|
2018-02-02 17:22:15 +01:00
|
|
|
before_build:
|
|
|
|
- ps: |
|
2019-04-04 12:10:23 +02:00
|
|
|
& .\tools\win32\load-vsenv.ps1
|
2018-08-02 14:42:14 +02:00
|
|
|
|
2019-04-04 12:10:23 +02:00
|
|
|
& powershell.exe .\tools\win32\configure.ps1
|
2018-08-02 14:42:14 +02:00
|
|
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
|
|
|
|
2018-02-02 17:22:15 +01:00
|
|
|
del build\Icinga*.msi
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- ps: |
|
2019-04-04 12:10:23 +02:00
|
|
|
& powershell.exe .\tools\win32\build.ps1
|
2018-08-02 14:42:14 +02:00
|
|
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
2018-02-02 17:22:15 +01:00
|
|
|
|
|
|
|
test_script:
|
|
|
|
- ps: |
|
2019-04-04 12:10:23 +02:00
|
|
|
& powershell.exe .\tools\win32\test.ps1
|
2018-08-02 14:42:14 +02:00
|
|
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
2018-02-02 17:22:15 +01:00
|
|
|
|
2018-02-22 14:25:53 +01:00
|
|
|
# Disable until we really need them
|
|
|
|
# https://github.com/Icinga/icinga2/issues/6106
|
|
|
|
# https://help.appveyor.com/discussions/problems/10253-maximum-allowed-artifact-storage-size-of-1000-mb-will-be-exceeded
|
|
|
|
#artifacts:
|
|
|
|
#- path: build/Icinga*.msi
|
|
|
|
#- path: build/choco/*.nupkg
|
|
|
|
#- path: build/Test.xml
|
2018-02-02 17:22:15 +01:00
|
|
|
|
|
|
|
deploy: off
|