]> granicus.if.org Git - icinga2/blob - appveyor.yml
Merge pull request #6113 from Icinga/testing/appveyor
[icinga2] / appveyor.yml
1 ---
2 version: 2.9.0.dev.{build}
3
4 os: Visual Studio 2017
5
6 environment:
7   CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
8   BOOST_ROOT: 'C:\Libraries\boost_1_65_1'
9   BOOST_LIBRARYDIR: 'C:\Libraries\boost_1_65_1\lib64-msvc-14.1'
10   BISON_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe'
11   FLEX_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe'
12
13 branches:
14   only:
15     - master
16
17 cache:
18 - build
19 - vendor -> tools\win32\download-openssl.ps1
20 - C:\ProgramData\chocolatey\lib\winflexbison3
21
22 install:
23 - ps: |
24     if (-not (Test-Path "vendor\OpenSSL")) {
25       .\tools\win32\download-openssl.ps1
26       if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode)  }
27     }
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 before_build:
35 - ps: |
36     .\tools\win32\configure.ps1
37     if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode)  }
38     del build\Icinga*.msi
39
40 build_script:
41 - ps: |
42     .\tools\win32\build.ps1
43     if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode)  }
44
45 test_script:
46 - ps: |
47     .\tools\win32\test.ps1
48     if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode)  }
49
50 # Disable until we really need them
51 # https://github.com/Icinga/icinga2/issues/6106
52 # https://help.appveyor.com/discussions/problems/10253-maximum-allowed-artifact-storage-size-of-1000-mb-will-be-exceeded
53 #artifacts:
54 #- path: build/Icinga*.msi
55 #- path: build/choco/*.nupkg
56 #- path: build/Test.xml
57
58 deploy: off