File tree Expand file tree Collapse file tree 2 files changed +9
-20
lines changed Expand file tree Collapse file tree 2 files changed +9
-20
lines changed Original file line number Diff line number Diff line change 13
13
- SET SYMFONY_DEPRECATIONS_HELPER=weak
14
14
- SET PHP=1
15
15
- SET ANSICON=121x90 (121x90)
16
- - SET PHP_INI_MATRIX=php.ini-min php.ini-max
17
16
- SET SYMFONY_PHPUNIT_SKIPPED_TESTS=phpunit.skipped
18
17
19
18
install :
@@ -56,4 +55,9 @@ install:
56
55
57
56
test_script :
58
57
- cd c:\projects\symfony
59
- - php phpunit symfony --exclude-group benchmark,intl-data
58
+ - SET X=0
59
+ - copy /Y c:\php\php.ini-min c:\php\php.ini
60
+ - php phpunit symfony --exclude-group benchmark,intl-data || SET X=1
61
+ - copy /Y c:\php\php.ini-max c:\php\php.ini
62
+ - php phpunit symfony --exclude-group benchmark,intl-data || SET X=1
63
+ - exit %X%
Original file line number Diff line number Diff line change @@ -76,22 +76,10 @@ if (isset($argv[1]) && 'symfony' === $argv[1]) {
76
76
$ cmd [0 ] = sprintf ('%s %s --colors=always ' , $ PHP , ProcessUtils::escapeArgument ("$ PHPUNIT_DIR /phpunit- $ PHPUNIT_VERSION /phpunit " ));
77
77
$ cmd = str_replace ('% ' , '%% ' , implode (' ' , $ cmd )).' %1$s ' ;
78
78
79
- $ phpIniMatrix = isset ($ _SERVER ['PHP_INI_MATRIX ' ]) ? explode (' ' , $ _SERVER ['PHP_INI_MATRIX ' ]) : array ();
80
- if ($ phpIniMatrix ) {
81
- if ('\\' !== DIRECTORY_SEPARATOR ) {
82
- echo "Error: PHP_INI_MATRIX is a Windows-only feature. \n" ;
83
- exit (1 );
84
- }
85
-
86
- $ phpDir = ProcessUtils::escapeArgument (dirname (`where.exe php `));
87
-
88
- $ newCmd = 'cmd /v:on /d /c "(SET X=0 ' ;
89
- foreach ($ phpIniMatrix as $ iniFile ) {
90
- $ newCmd .= " & copy /Y $ phpDir \\$ iniFile $ phpDir \\php.ini & echo. & echo Running tests with $ iniFile: & ( $ cmd || SET X=1) " ;
91
- }
92
- $ cmd = $ newCmd .= ' & exit !X!)%2$s" ' ;
79
+ if ('\\' === DIRECTORY_SEPARATOR ) {
80
+ $ cmd = 'cmd /v:on /d /c "( ' .$ cmd .')%2$s" ' ;
93
81
} else {
94
- $ cmd .= ' %2$s ' ;
82
+ $ cmd .= '%2$s ' ;
95
83
}
96
84
97
85
if (isset ($ argv [1 ]) && 'symfony ' === $ argv [1 ]) {
@@ -168,9 +156,6 @@ if (isset($argv[1]) && 'symfony' === $argv[1]) {
168
156
}
169
157
unlink ($ file );
170
158
}
171
- if ($ skippedTests ) {
172
- @unlink ("$ component/ $ skippedTests " );
173
- }
174
159
175
160
if ($ procStatus ) {
176
161
$ exit = 1 ;
You can’t perform that action at this time.
0 31CE commit comments