1 version: 1.0.{build}
\r
3 os: Visual Studio 2015
\r
7 configuration: Release
\r
19 fast_finish: false # set this flag to immediately finish build once one of the jobs fails.
\r
25 GENERATOR: "Visual Studio 14 2015"
\r
28 GENERATOR: "Visual Studio 14 2015 Win64"
\r
31 GENERATOR: "NMake Makefiles"
\r
34 GENERATOR: "NMake Makefiles"
\r
37 GENERATOR: "NMake Makefiles"
\r
40 - ps: 'Write-Host "Building GEOS branch: $env:APPVEYOR_REPO_BRANCH" -ForegroundColor Magenta'
\r
42 # Write-Host "Build worker environment variables:" -ForegroundColor Magenta
\r
43 # Get-ChildItem Env: | %{"{0}={1}" -f $_.Name,$_.Value}
\r
44 - if "%GENERATOR%"=="NMake Makefiles" if "%PLATFORM%"=="x86" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
\r
45 - if "%GENERATOR%"=="NMake Makefiles" if "%PLATFORM%"=="x64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
\r
46 - if "%GENERATOR%"=="NMake Makefiles" if "%PLATFORM%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
\r
49 - ps: 'Write-Host "Running $env:BUILDER with $env:GENERATOR" -ForegroundColor Magenta'
\r
50 - if "%BUILDER%"=="CMake" cmake.exe -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%
\r
51 - if "%BUILDER%"=="NMake" .\autogen.bat
\r
54 - ps: 'Write-Host "Running $env:BUILDER:" -ForegroundColor Magenta'
\r
55 - if "%BUILDER%"=="CMake" cmake --build . --config %CONFIGURATION%
\r
56 - if "%BUILDER%"=="NMake" nmake /f makefile.vc
\r
59 - ps: 'Write-Host "Running tests:" -ForegroundColor Magenta'
\r
60 - if "%BUILDER%"=="CMake" ctest -V --output-on-failure -C %CONFIGURATION%
\r
61 - if "%BUILDER%"=="NMake" echo *** NMake does NOT build tests ***
\r
63 # If you need to debug AppVeyor session (https://www.appveyor.com/docs/how-to/rdp-to-build-worker), then:
\r
64 # 1. Uncomment the on_finish section below:
\r
66 # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
\r
67 # 2. Add this line to the init section below
\r
68 #- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
\r