From 0dfbf483cb11932dc2431d88e444f39b4cc8b819 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Mon, 8 Jul 2019 02:05:34 +0300 Subject: [PATCH] Upload test results to AppVeyor (#1918) So that it shows up in `Tests` tab, not only `Console` --- .appveyor.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index e666316c4..5071f62d4 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -66,5 +66,9 @@ install: ## Run the actual test test_script: - cd c:\projects\php-project-workspace - - vendor/bin/phpunit + - vendor/bin/phpunit --log-junit build/phpunit/phpunit.xml - php ./psalm --shepherd + +on_finish: + - ps: $wc = New-Object 'System.Net.WebClient' + - ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\build\phpunit\phpunit.xml))