3 os: Visual Studio 2015
\r
7 configuration: Release
\r
18 fast_finish: false # set this flag to immediately finish build once one of the jobs fails.
\r
29 Write-Host "Build worker environment variables:" -ForegroundColor Magenta
\r
30 Get-ChildItem Env: | %{"{0}={1}" -f $_.Name,$_.Value}
\r
34 if ($env:PLATFORM -Match "Win32") {
\r
35 $G="Visual Studio 14 2015"
\r
36 } elseif ($env:PLATFORM -Match "Win64") {
\r
37 $G="Visual Studio 14 2015 Win64"
\r
39 Write-Host "Running CMake:" -ForegroundColor Magenta
\r
40 cmake.exe -G $G -DCMAKE_BUILD_TYPE=$env:CFG $env:APPVEYOR_BUILD_FOLDER
\r
41 Write-Host "Running MSBuild:" -ForegroundColor Magenta
\r
51 Write-Host "Running CTest:" -ForegroundColor Magenta
\r
52 $cmd = 'ctest -V --output-on-failure -C ' + $Env:CFG
\r
54 if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
\r
56 # If you need to debug AppVeyor session (https://www.appveyor.com/docs/how-to/rdp-to-build-worker), then:
\r
57 # 1. Uncomment the on_finish section below:
\r
59 # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
\r
60 # 2. Add this line to the init section below
\r
61 #- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
\r