Skip to content

Commit

Permalink
fix up result handling for appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Jul 3, 2024
1 parent 3bcf191 commit fcc5092
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions appveyor/scripts/tests/lintCheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ $lintOutput = (Resolve-Path .\testOutput\lint\)
.\runlint.bat "$lintOutput"
if ($LastExitCode -ne 0) {
Set-AppveyorBuildVariable "testFailExitCode" $LastExitCode
Add-AppveyorMessage "FAIL: Lint check. See test results for more information."
Add-AppveyorMessage "FAIL: Lint check. See test results and lint artifacts for more information."
} else {
Add-AppveyorMessage "PASS: Lint check."
}
Push-AppveyorArtifact $lintOutput
Push-AppveyorArtifact "$lintOutput/PR-lint.xml"
Push-AppveyorArtifact "$lintOutput/lint-diff.diff"
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", $lintOutput)
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", "$lintOutput/PR-lint.xml")

0 comments on commit fcc5092

Please sign in to comment.