Commit afecd15c by Edward Thomson

ci: msvc leak-checking

parent 7f12c123
......@@ -85,7 +85,7 @@ phases:
- powershell: . '$(Build.SourcesDirectory)\ci\build.ps1'
displayName: Build
env:
CMAKE_OPTIONS: -G"Visual Studio 12 2013 Win64"
CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013 Win64"
- powershell: . '$(Build.SourcesDirectory)\ci\test.ps1'
displayName: Test
......@@ -97,7 +97,7 @@ phases:
- powershell: . '$(Build.SourcesDirectory)\ci\build.ps1'
displayName: Build
env:
CMAKE_OPTIONS: -G"Visual Studio 12 2013"
CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013"
- powershell: . '$(Build.SourcesDirectory)\ci\test.ps1'
displayName: Test
......
......@@ -11,15 +11,14 @@ Write-Host "Build directory: ${BuildDirectory}"
Write-Host ""
Write-Host "Operating system version:"
Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, ServicePackMajorVersion, BuildNumber, OSArchitecture | Format-List
Write-Host "PATH:"
Write-Host "${Env:PATH}"
Write-Host "PATH: ${Env:PATH}"
Write-Host ""
Write-Host "##############################################################################"
Write-Host "## Configuring build environment"
Write-Host "##############################################################################"
cmake $SourceDirectory -DBUILD_EXAMPLES=ON ${Env:CMAKE_OPTIONS}
Invoke-Expression "cmake ${SourceDirectory} -DBUILD_EXAMPLES=ON ${Env:CMAKE_OPTIONS}"
if ($LastExitCode -ne 0) { [Environment]::Exit($LastExitCode) }
Write-Host ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment