diff options
author | Anatol Belski <ab@php.net> | 2017-12-01 17:23:03 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-12-01 17:23:03 +0100 |
commit | 0b44af5b1da049a66d44b1aa5a1a6a198026cd94 (patch) | |
tree | a1fd8c86222813ef117e8746d1f899f55ec528bf /appveyor/test_task.bat | |
parent | c94a73ec905f2928516f15fef9acca744015ed8d (diff) | |
download | php-git-0b44af5b1da049a66d44b1aa5a1a6a198026cd94.tar.gz |
Implement junit test results upload to AppVeyor
Diffstat (limited to 'appveyor/test_task.bat')
-rw-r--r-- | appveyor/test_task.bat | 8 |
1 files changed, 7 insertions, 1 deletions
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% |