Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d5bd2a

Browse files
Merge branch '2.7' into 2.8
* 2.7: [appveyor] Exit with failing status code
2 parents b7d18f9 + 90dd3fb commit 9d5bd2a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ install:
5656

5757
test_script:
5858
- cd c:\projects\symfony
59+
- Setlocal EnableDelayedExpansion
5960
- SET X=0
6061
- copy /Y c:\php\php.ini-min c:\php\php.ini
61-
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=1
62+
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
6263
- copy /Y c:\php\php.ini-max c:\php\php.ini
63-
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=1
64+
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
6465
- exit %X%

phpunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ if (isset($argv[1]) && 'symfony' === $argv[1]) {
162162

163163
// Fail on any individual component failures but ignore STATUS_STACK_BUFFER_OVERRUN (-1073740791) on Windows when APCu is enabled
164164
if ($procStatus && ('\\' !== DIRECTORY_SEPARATOR || !extension_loaded('apcu') || !ini_get('apc.enable_cli') || -1073740791 !== $procStatus)) {
165-
$exit = 1;
165+
$exit = $procStatus;
166166
echo "\033[41mKO\033[0m $component\n\n";
167167
} else {
168168
echo "\033[32mOK\033[0m $component\n\n";

0 commit comments

Comments
 (0)