Skip to content

Commit

Permalink
Publish test results
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed Apr 18, 2017
1 parent 6839295 commit c35b552
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions appveyor-testresults.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# upload results to AppVeyor
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", (Join-Path $env:APPVEYOR_BUILD_FOLDER .\SharpAdbClient.Tests\TestResults\testresults.trx))
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ test_script:
- cmd: cd %APPVEYOR_BUILD_FOLDER%\SharpAdbClient.Tests\
- cmd: dotnet restore
- cmd: dotnet build
- cmd: dotnet vstest bin\Debug\netcoreapp1.1\SharpAdbClient.Tests.dll /testcasefilter:"TestCategory!=IntegrationTest & TestCategory!=PerformanceTest"
- cmd: dotnet vstest bin\Debug\netcoreapp1.1\SharpAdbClient.Tests.dll /testcasefilter:"TestCategory!=IntegrationTest & TestCategory!=PerformanceTest" /logger:trx;LogFileName=testresults.trx
- ps: '& (Join-Path $env:APPVEYOR_BUILD_FOLDER "appveyor-testresults.ps1")'

on_success:
- ps: Push-AppveyorArtifact "$env:APPVEYOR_BUILD_FOLDER\SharpAdbClient\bin\Release\SharpAdbClient.2.1.0-beta$($env:APPVEYOR_BUILD_NUMBER).nupkg"
Expand Down

0 comments on commit c35b552

Please sign in to comment.