From: Anatol Belski Date: Fri, 1 Dec 2017 16:23:03 +0000 (+0100) Subject: Implement junit test results upload to AppVeyor X-Git-Tag: php-7.3.0alpha1~898 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b44af5b1da049a66d44b1aa5a1a6a198026cd94;p=php Implement junit test results upload to AppVeyor --- diff --git a/appveyor/test_task.bat b/appveyor/test_task.bat index 3ebc773c30..34ed37fb44 100644 --- a/appveyor/test_task.bat +++ b/appveyor/test_task.bat @@ -82,8 +82,14 @@ copy %PHP_BUILD_CACHE_ENCHANT_DICT_DIR%\* %USERPROFILE%\enchant\myspell mkdir c:\tests_tmp +set TEST_PHP_JUNIT=c:\junit.out.xml + cd "%APPVEYOR_BUILD_FOLDER%" nmake test TESTS="%OPCACHE_OPTS% -q --offline --show-diff --show-slow 1000 --set-timeout 120 -g FAIL,XFAIL,BORK,WARN,LEAK,SKIP --temp-source c:\tests_tmp --temp-target c:\tests_tmp" -exit /b %errorlevel% +set EXIT_CODE=%errorlevel% + +powershell -Command "$wc = New-Object 'System.Net.WebClient'; $wc.UploadFile('https://ci.appveyor.com/api/testresults/junit/%APPVEYOR_JOB_ID%', 'c:\junit.out.xml')" + +exit /b %EXIT_CODE%