From 0624740220430ee9a15aa930e4e72ea9a96e85d7 Mon Sep 17 00:00:00 2001 From: "oleg.hoefling" Date: Thu, 28 May 2020 16:42:53 +0200 Subject: [PATCH] publish test results in appveyor jobs Signed-off-by: oleg.hoefling --- .appveyor.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index e3aee77a..939d8d30 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -23,5 +23,12 @@ test: off test_script: - pip install -r requirements-test.txt - pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist - - pytest -v --color=yes + - pytest -v --color=yes --junitxml=unittests.xml - ps: Get-ChildItem dist\*.whl | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name } + +on_finish: + - ps: | + # archive test results at AppVeyor + $wc = New-Object 'System.Net.WebClient' + $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\unittests.xml)) + $LastExitCode = 0