1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 16:25:01 +03:00

Azure Pipelines: improve steps, use Ninja and designated build directory

This commit is contained in:
Davide Beatrici
2020-07-21 21:11:57 +02:00
parent c948f65850
commit 6801e4b384
6 changed files with 56 additions and 41 deletions

View File

@ -1,20 +1,25 @@
$ErrorActionPreference = 'Stop'
if (Test-Path "env:BUILD_BINARIESDIRECTORY") {
$BUILD_BINARIESDIRECTORY = $env:BUILD_BINARIESDIRECTORY
} else {
$BUILD_BINARIESDIRECTORY = "build"
}
# ('s', 'c', 'b', 'sm', 'cm') ??
('s', 'c', 'b') | % {
[String] $mode = $_
Write-Host "testing: $mode"
$full = (Write-Output "q\n" | & .\build\vpntest.exe $mode)
$full = (Write-Output "q\n" | & "$BUILD_BINARIESDIRECTORY\vpntest.exe" $mode)
$t = ($full | Select-String -Pattern 'NO MEMORY LEAKS' -CaseSensitive)
if( ($t).Count -ne 1){
if (($t).Count -ne 1) {
$full
Write-Error 'failed'
return $false
}else{
} else {
Write-Host 'ok'
}
}