]> granicus.if.org Git - icinga2/blob - appveyor.yml
Release version 2.11.2
[icinga2] / appveyor.yml
1 ---
2 version: 2.11.0.dev.{build}
3
4 os: Visual Studio 2017
5 platform: x64
6
7 environment:
8   BITS: 64
9   CMAKE_BUILD_TYPE: Debug
10   CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
11   # https://www.appveyor.com/docs/windows-images-software/#boost
12   BOOST_ROOT: 'C:\Libraries\boost_1_67_0'
13   BOOST_LIBRARYDIR: 'C:\Libraries\boost_1_67_0\lib64-msvc-14.1'
14   # https://www.appveyor.com/docs/windows-images-software/#tools
15   OPENSSL_ROOT_DIR: 'C:\OpenSSL-v111-Win64'
16   BISON_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe'
17   FLEX_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe'
18
19 branches:
20   only:
21     - master
22
23 cache:
24 - build -> appveyor.yml
25 - C:\ProgramData\chocolatey\lib\winflexbison3
26
27 install:
28 - ps: |
29     if (-not (Test-Path "C:\ProgramData\chocolatey\lib\winflexbison3")) {
30       & choco install winflexbison3
31       if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
32     }
33
34 # why that env handling, see
35 # https://help.appveyor.com/discussions/questions/18777-how-to-use-vcvars64bat-from-powershell#comment_44999171
36 before_build:
37 - ps: |
38     & .\tools\win32\load-vsenv.ps1
39
40     & powershell.exe .\tools\win32\configure.ps1
41     if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
42
43     del build\Icinga*.msi
44
45 build_script:
46 - ps: |
47     & powershell.exe .\tools\win32\build.ps1
48     if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
49
50 test_script:
51 - ps: |
52     & powershell.exe .\tools\win32\test.ps1
53     if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
54
55 # Disable until we really need them
56 # https://github.com/Icinga/icinga2/issues/6106
57 # https://help.appveyor.com/discussions/problems/10253-maximum-allowed-artifact-storage-size-of-1000-mb-will-be-exceeded
58 #artifacts:
59 #- path: build/Icinga*.msi
60 #- path: build/choco/*.nupkg
61 #- path: build/Test.xml
62
63 deploy: off