Commit d68c293a by Edward Thomson Committed by Patrick Steinhardt

ci: msvc leak-checking

(cherry picked from commit afecd15c)
parent 542a403f
......@@ -55,7 +55,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
......@@ -67,7 +67,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