Browse Source

Appveyor should fail if DrMemory detects leaks

Stefan Profanter 7 years ago
parent
commit
bdd73cd186
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tools/appveyor/build.ps1

+ 4 - 0
tools/appveyor/build.ps1

@@ -124,6 +124,10 @@ if ($env:CC_SHORTNAME -eq "vs2015") {
     	exit $LASTEXITCODE
     }
 	& cmake --build . --target test-verbose --config debug
+	if ($LASTEXITCODE -and $LASTEXITCODE -ne 0) {
+		Write-Host -ForegroundColor Red "`n`n*** Make failed. Exiting ... ***"
+		exit $LASTEXITCODE
+	}
 }