diff options
Diffstat (limited to 'appveyor')
-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 60eb6dc164..1ffdc3cdf4 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% |