forked from dotnet/roslyn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes another log contention issue we were seeing in CI. This was not caught in dotnet#72263 because the syntax generation only ran conditionally hence masked this problem.
- Loading branch information
Showing
2 changed files
with
6 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
[CmdletBinding(PositionalBinding=$false)] | ||
param ( | ||
[switch]$ci | ||
[switch]$ci = $false | ||
) | ||
|
||
Set-StrictMode -version 2.0 | ||
$ErrorActionPreference="Stop" | ||
|
||
|
||
Write-Host "Building Microsoft.CodeAnalysis.Features" | ||
try { | ||
. (Join-Path $PSScriptRoot "build-utils.ps1") | ||
Push-Location $RepoRoot | ||
$prepareMachine = $ci | ||
|
||
$projectFilePath = Join-Path $RepoRoot "src\Features\Core\Portable\Microsoft.CodeAnalysis.Features.csproj" | ||
Exec-DotNet "build $projectFilePath -t:GenerateRulesMissingDocumentation -p:RoslynEnforceCodeStyle=false -p:RunAnalyzersDuringBuild=false -p:ContinuousIntegrationBuild=$ci -c Release" | ||
|
||
if ($LASTEXITCODE -ne 0) { | ||
Write-Host "Failed with exit code $LASTEXITCODE." | ||
exit $LASTEXITCODE | ||
} | ||
} | ||
catch { | ||
Write-Host "Error verifying rules missing documentation!" | ||
Write-Host $_ | ||
Write-Host $_.Exception | ||
Write-Host $_.ScriptStackTrace | ||
$host.SetShouldExit(1) | ||
exit 1 | ||
ExitWithExitCode 1 | ||
} | ||
finally { | ||
Pop-Location | ||
} |