summaryrefslogtreecommitdiff
path: root/appveyor/test_task.bat
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-12-01 17:23:03 +0100
committerAnatol Belski <ab@php.net>2017-12-01 17:23:03 +0100
commit0b44af5b1da049a66d44b1aa5a1a6a198026cd94 (patch)
treea1fd8c86222813ef117e8746d1f899f55ec528bf /appveyor/test_task.bat
parentc94a73ec905f2928516f15fef9acca744015ed8d (diff)
downloadphp-git-0b44af5b1da049a66d44b1aa5a1a6a198026cd94.tar.gz
Implement junit test results upload to AppVeyor
Diffstat (limited to 'appveyor/test_task.bat')
-rw-r--r--appveyor/test_task.bat8
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%