Minor build improvements.
This commit is contained in:
Родитель
d4b1e64caf
Коммит
850e17ac41
|
@ -103,11 +103,16 @@ try {
|
|||
? { $_ -notmatch '^\s+origin/HEAD' } |
|
||||
% { ($_ -match 'origin/(.+)$') | Out-Null; $matches[1] }
|
||||
|
||||
$failedListPath = "$sitesBuildRoot\!failed.txt"
|
||||
Write-Output " $branches"
|
||||
if (Test-Path $failedListPath) {
|
||||
Write-Output "Deleting $failedListPath..."
|
||||
Remove-Item $failedListPath
|
||||
}
|
||||
$branches | % {
|
||||
Write-Output ''
|
||||
Write-Output "*** $_"
|
||||
if ($_ -match '^revert|hotfix|\bmerge\b') {
|
||||
if ($_ -match '^revert|(?:hot|build)fix|\bmerge\b') {
|
||||
Write-Output "Matches exclusion rule, skipped."
|
||||
return
|
||||
}
|
||||
|
@ -185,6 +190,7 @@ try {
|
|||
}
|
||||
|
||||
Write-Output " [WARNING] $($ex.Message)"
|
||||
Add-Content $failedListPath @($branchFsName, $ex.Message, '')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ $ProgressPreference = "SilentlyContinue" # https://www.amido.com/powershell-win3
|
|||
# Note: Write-Host, Write-Error and Write-Warning do not function properly in Azure
|
||||
."$PSScriptRoot\Setup-Build.ps1"
|
||||
|
||||
$branchFsName = $_ -replace '[/\\:]', '-'
|
||||
$branchFsName = $branchName -replace '[/\\:]', '-'
|
||||
|
||||
$hashMarkerPath = "$outputRoot\!Hash"
|
||||
$hashMarkerPathFull = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($hashMarkerPath)
|
||||
|
@ -90,7 +90,7 @@ function Restore-Packages() {
|
|||
}
|
||||
|
||||
Restore-Packages
|
||||
|
||||
|
||||
$standardArgs = "/p:RestorePackages=false /p:Configuration=Debug /p:DelaySign=false /p:SignAssembly=false /p:NeedsFakeSign=false /p:SolutionDir=`"$sourceRoot\Src`""
|
||||
$csCandidates = @(
|
||||
"Src\Compilers\CSharp\Portable\CSharpCodeAnalysis.csproj",
|
||||
|
|
Загрузка…
Ссылка в новой задаче