Skip to content

Commit 0624740

Browse files
committed
publish test results in appveyor jobs
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
1 parent ea86e02 commit 0624740

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.appveyor.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,12 @@ test: off
2323
test_script:
2424
- pip install -r requirements-test.txt
2525
- pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist
26-
- pytest -v --color=yes
26+
- pytest -v --color=yes --junitxml=unittests.xml
2727
- ps: Get-ChildItem dist\*.whl | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
28+
29+
on_finish:
30+
- ps: |
31+
# archive test results at AppVeyor
32+
$wc = New-Object 'System.Net.WebClient'
33+
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\unittests.xml))
34+
$LastExitCode = 0

0 commit comments

Comments
 (0)