File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,14 @@ Try {
42
42
43
43
Exec { dotnet test $_.FullName -- configuration $config -- no- build -- no- restore -- logger:" trx;LogFileName=..\..\test-result.trx" }
44
44
45
+ $testResults = (Resolve-Path .\test-result * .trx)
45
46
# if on build server upload results to AppVeyor
46
47
if (" ${ENV: APPVEYOR_JOB_ID} " -ne " " ) {
47
48
$wc = New-Object ' System.Net.WebClient'
48
- $wc.UploadFile (" https://ci.appveyor.com/api/testresults/mstest/$ ( $env: APPVEYOR_JOB_ID ) " , ( Resolve-Path . \test-result .trx) )
49
+ $wc.UploadFile (" https://ci.appveyor.com/api/testresults/mstest/$ ( $env: APPVEYOR_JOB_ID ) " , $testResults )
49
50
}
50
51
51
- Remove-Item . \test-result .trx - ErrorAction SilentlyContinue
52
+ Remove-Item $testResults - ErrorAction SilentlyContinue
52
53
}
53
54
54
55
# Publish the nupkg artifacts
You can’t perform that action at this time.
0 commit comments