Skip to content

Commit

Permalink
Try to publish JUnit reports to Appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Apr 17, 2017
1 parent 0b6f8e0 commit 209aa69
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ install:

# Build and test
build_script:
- .\build.cmd cleanbuild Release %APPVEYOR_BUILD_VERSION%
- ps: Get-ChildItem target\winp-$env:APPVEYOR_BUILD_VERSION.jar | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- .\build.cmd cleanbuild Debug %APPVEYOR_BUILD_VERSION%-Debug
- ps: Get-ChildItem target\winp-$env:APPVEYOR_BUILD_VERSION-Debug.jar | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- .\build.cmd cleanbuild Release %APPVEYOR_BUILD_VERSION%
- ps: Get-ChildItem target\winp-$env:APPVEYOR_BUILD_VERSION.jar | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }


on_finish:
# TODO: enable once there are tests, implement aggregator somehow
# - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests.xml))
# Publish JUnit reports for the release version
- ps: Get-ChildItem target\surefire-reports\TEST-*.xml | (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path target\surefire-reports\$_.Name))

artifacts:
#x64
Expand Down

0 comments on commit 209aa69

Please sign in to comment.