com php-src: Implement junit test results upload to AppVeyor: appveyor/test_task.bat

From: Date: Fri, 01 Dec 2017 16:23:03 +0000
Subject: com php-src: Implement junit test results upload to AppVeyor: appveyor/test_task.bat
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100467@lists.php.net to get a copy of this message
Commit: 0b44af5b1da049a66d44b1aa5a1a6a198026cd94 Author: Anatol Belski <ab@php.net> Fri, 1 Dec 2017 17:23:03 +0100 Parents: c94a73ec905f2928516f15fef9acca744015ed8d Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0b44af5b1da049a66d44b1aa5a1a6a198026cd94 Log: Implement junit test results upload to AppVeyor Changed paths: M appveyor/test_task.bat Diff: diff --git a/appveyor/test_task.bat b/appveyor/test_task.bat index 3ebc773..34ed37f 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%

« previous php.cvs (#100467) next »