-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
79 lines (68 loc) · 3.55 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: 1.0.{build}
image: Visual Studio 2017
platform: x64
configuration: Release
shallow_clone: true
clone_depth: 5
matrix:
fast_finish: false # set this flag to immediately finish build once one of the jobs fails.
environment:
matrix:
- PLATFORM: x64
BUILDER: CMake
GENERATOR: "Visual Studio 15 2017 Win64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# - PLATFORM: x86
# BUILDER: CMake
# GENERATOR: "Visual Studio 15 2017"
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# - PLATFORM: x64
# BUILDER: CMake
# GENERATOR: "NMake Makefiles"
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# - PLATFORM: x86
# BUILDER: CMake
# GENERATOR: "NMake Makefiles"
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# - PLATFORM: x64
# BUILDER: CMake
# GENERATOR: "Visual Studio 14 2015 Win64"
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# - PLATFORM: x86
# BUILDER: CMake
# GENERATOR: "Visual Studio 14 2015"
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# - PLATFORM: x64
# BUILDER: CMake
# GENERATOR: "NMake Makefiles"
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- PLATFORM: x86
BUILDER: CMake
GENERATOR: "NMake Makefiles"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
init:
- ps: 'Write-Host "Building GEOS branch: $env:APPVEYOR_REPO_BRANCH" -ForegroundColor Magenta'
#- ps: |
# Write-Host "Build worker environment variables:" -ForegroundColor Magenta
# Get-ChildItem Env: | %{"{0}={1}" -f $_.Name,$_.Value}
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" if "%GENERATOR%"=="NMake Makefiles" if "%PLATFORM%"=="x86" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" if "%GENERATOR%"=="NMake Makefiles" if "%PLATFORM%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%GENERATOR%"=="NMake Makefiles" if "%PLATFORM%"=="x86" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%GENERATOR%"=="NMake Makefiles" if "%PLATFORM%"=="x64" call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%GENERATOR%"=="NMake Makefiles" if "%PLATFORM%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
before_build:
- ps: 'Write-Host "Running $env:BUILDER with $env:GENERATOR" -ForegroundColor Magenta'
- cmake --version
- cmake -G "%GENERATOR%" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%
build_script:
- ps: 'Write-Host "Running $env:BUILDER:" -ForegroundColor Magenta'
- cmake --build . --config %CONFIGURATION%
test_script:
- ps: 'Write-Host "Running tests:" -ForegroundColor Magenta'
- ctest --output-on-failure -C %CONFIGURATION%
# If you need to debug AppVeyor session (https://www.appveyor.com/docs/how-to/rdp-to-build-worker), then:
# 1. Uncomment the on_finish section below:
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# 2. Add this line to the init section below
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))