icinga2/appveyor.yml

65 lines
1.8 KiB
YAML
Raw Normal View History

2018-02-02 17:22:15 +01:00
---
version: 2.11.0.dev.{build}
2018-02-02 17:22:15 +01:00
os: Visual Studio 2019
2018-08-02 14:42:14 +02:00
platform: x64
2018-02-02 17:22:15 +01:00
environment:
BITS: 64
CMAKE_BUILD_TYPE: Debug
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
BOOST_ROOT: 'C:\Libraries\boost_1_71_0'
BOOST_LIBRARYDIR: 'C:\Libraries\boost_1_71_0\lib64-msvc-14.2'
# 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:
- 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: |
& .\tools\win32\load-vsenv.ps1
2018-08-02 14:42:14 +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: |
& 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: |
& 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
# 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