[appveyor] Exit with failing status code
This commit is contained in:
parent
5517368265
commit
a6cfff5570
@ -55,9 +55,10 @@ install:
|
|||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cd c:\projects\symfony
|
- cd c:\projects\symfony
|
||||||
|
- Setlocal EnableDelayedExpansion
|
||||||
- SET X=0
|
- SET X=0
|
||||||
- copy /Y c:\php\php.ini-min c:\php\php.ini
|
- copy /Y c:\php\php.ini-min c:\php\php.ini
|
||||||
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=1
|
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
|
||||||
- copy /Y c:\php\php.ini-max c:\php\php.ini
|
- copy /Y c:\php\php.ini-max c:\php\php.ini
|
||||||
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=1
|
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
|
||||||
- exit %X%
|
- exit %X%
|
||||||
|
2
phpunit
2
phpunit
@ -162,7 +162,7 @@ if (isset($argv[1]) && 'symfony' === $argv[1]) {
|
|||||||
|
|
||||||
// Fail on any individual component failures but ignore STATUS_STACK_BUFFER_OVERRUN (-1073740791) on Windows when APCu is enabled
|
// Fail on any individual component failures but ignore STATUS_STACK_BUFFER_OVERRUN (-1073740791) on Windows when APCu is enabled
|
||||||
if ($procStatus && ('\\' !== DIRECTORY_SEPARATOR || !extension_loaded('apcu') || !ini_get('apc.enable_cli') || -1073740791 !== $procStatus)) {
|
if ($procStatus && ('\\' !== DIRECTORY_SEPARATOR || !extension_loaded('apcu') || !ini_get('apc.enable_cli') || -1073740791 !== $procStatus)) {
|
||||||
$exit = 1;
|
$exit = $procStatus;
|
||||||
echo "\033[41mKO\033[0m $component\n\n";
|
echo "\033[41mKO\033[0m $component\n\n";
|
||||||
} else {
|
} else {
|
||||||
echo "\033[32mOK\033[0m $component\n\n";
|
echo "\033[32mOK\033[0m $component\n\n";
|
||||||
|
Reference in New Issue
Block a user