Skip to content

Commit a33669b

Browse files
committed
Enable log capture for InspectCode/CleanupCode on Windows
1 parent e181943 commit a33669b

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

Build.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function CheckLastExitCode {
88

99
function RunInspectCode {
1010
$outputPath = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), 'jetbrains-inspectcode-results.xml')
11-
dotnet jb inspectcode JsonApiDotNetCore.sln --no-build --output="$outputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=GlobalPerProduct -dsl=SolutionPersonal -dsl=ProjectPersonal --dotnetcoresdk=8.0.100-preview.4.23260.5
11+
dotnet jb inspectcode JsonApiDotNetCore.sln --no-build --output="$outputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --severity=WARNING --verbosity=TRACE --LogFolder=$env:APPVEYOR_BUILD_FOLDER/inspect-code-logs --debug -dsl=GlobalAll -dsl=GlobalPerProduct -dsl=SolutionPersonal -dsl=ProjectPersonal --dotnetcoresdk=8.0.100-preview.4.23260.5
1212
CheckLastExitCode
1313

1414
[xml]$xml = Get-Content "$outputPath"
@@ -51,7 +51,7 @@ function RunCleanupCode {
5151

5252
if ($baseCommitHash -ne $headCommitHash) {
5353
Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request."
54-
dotnet regitlint -s JsonApiDotNetCore.sln --print-command --skip-tool-check --max-runs=5 --jb-profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --verbosity=WARN -f commits -a $headCommitHash -b $baseCommitHash --fail-on-diff --print-diff --jb --dotnetcoresdk=8.0.100-preview.4.23260.5
54+
dotnet regitlint -s JsonApiDotNetCore.sln --print-command --skip-tool-check --max-runs=5 --jb-profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --verbosity=TRACE --jb --LogFolder=$env:APPVEYOR_BUILD_FOLDER/cleanup-code-logs --jb --debug -f commits -a $headCommitHash -b $baseCommitHash --fail-on-diff --print-diff --jb --dotnetcoresdk=8.0.100-preview.4.23260.5
5555
CheckLastExitCode
5656
}
5757
}
@@ -107,9 +107,9 @@ CheckLastExitCode
107107
RunInspectCode
108108
RunCleanupCode
109109

110-
dotnet test -c Release --no-build --collect:"XPlat Code Coverage"
111-
CheckLastExitCode
110+
#dotnet test -c Release --no-build --collect:"XPlat Code Coverage"
111+
#CheckLastExitCode
112112

113-
ReportCodeCoverage
113+
#ReportCodeCoverage
114114

115-
CreateNuGetPackage
115+
#CreateNuGetPackage

appveyor.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
image:
2-
- Ubuntu2004
2+
# - Ubuntu2004
33
- Visual Studio 2022
44

55
version: '{build}'
@@ -11,6 +11,18 @@ environment:
1111
PGPASSWORD: Password12!
1212
GIT_ACCESS_TOKEN:
1313
secure: WPzhuEyDE7yuHeEgLi3RoGJ8we+AHU6nMksbFoWQ0AmI/HJLh4bjOR0Jnnzc6aaG
14+
APPVEYOR_RDP_PASSWORD: c6IuC99A-bbchKhD
15+
16+
# In the VM, run the next commands to release locks before collecting logs:
17+
# Get-Process | Where-Object {$_.ProcessName -eq 'dotnet'} | Stop-Process -Force
18+
# Get-Process | Where-Object {$_.ProcessName -eq 'msbuild'} | Stop-Process -Force
19+
# Get-Process | Where-Object {$_.ProcessName -eq 'VBCSCompiler'} | Stop-Process -Force
20+
21+
init:
22+
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
23+
24+
on_finish:
25+
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
1426

1527
branches:
1628
only:

0 commit comments

Comments
 (0)