@@ -224,15 +224,15 @@ install:
224
224
SYMFONY_VERSION=$(git ls-remote --heads | grep -o '/[1-9].*' | tail -n 1 | sed s/.//) &&
225
225
git fetch --depth=2 origin $SYMFONY_VERSION &&
226
226
git checkout -m FETCH_HEAD &&
227
- COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)
227
+ export COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)
228
228
else
229
229
SYMFONY_VERSION=$(cat composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9.]*')
230
230
fi
231
231
232
232
- |
233
233
# Skip the phpunit-bridge on not-master branches when $deps is empty
234
234
if [[ ! $deps && $TRAVIS_BRANCH != master ]]; then
235
- COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -not -wholename '*/Bridge/PhpUnit/*' -printf '%h\n' | sort)
235
+ export COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -not -wholename '*/Bridge/PhpUnit/*' -printf '%h\n' | sort)
236
236
fi
237
237
238
238
- |
@@ -246,7 +246,7 @@ install:
246
246
247
247
- |
248
248
# Legacy tests are skipped when deps=high and when the current branch version has not the same major version number as the next one
249
- [[ $deps = high && ${SYMFONY_VERSION%.*} != $(git show $(git ls-remote --heads | grep -FA1 /$SYMFONY_VERSION | tail -n 1):composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9]*' | head -n 1) ]] && LEGACY=,legacy
249
+ [[ $deps = high && ${SYMFONY_VERSION%.*} != $(git show $(git ls-remote --heads | grep -FA1 /$SYMFONY_VERSION | tail -n 1):composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9]*' | head -n 1) ]] && export LEGACY=,legacy
250
250
251
251
export COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev
252
252
if [[ $deps ]]; then mv composer.json.phpunit composer.json; fi
@@ -259,7 +259,7 @@ install:
259
259
export PHP=$1
260
260
if [[ $PHP != 7.4* && $PHP != $TRAVIS_PHP_VERSION && $TRAVIS_PULL_REQUEST != false ]]; then
261
261
echo -e "\\n\\e[33;1mIntermediate PHP version $PHP is skipped for pull requests.\\e[0m"
262
- break
262
+ return
263
263
fi
264
264
phpenv global $PHP
265
265
([[ $deps ]] && cd src/Symfony/Component/HttpFoundation; cp composer.json composer.bak; composer config platform.ext-mongodb 1.6.0; composer require --dev --no-update mongodb/mongodb)
@@ -311,10 +311,7 @@ install:
311
311
fi
312
312
fi
313
313
}
314
+ export -f run_tests
314
315
315
316
script :
316
- - for PHP in $TRAVIS_PHP_VERSION $php_extra; do
317
- (run_tests $PHP) || X=1;
318
- done
319
-
320
- [[ ! $X ]] || (exit 1)
317
+ echo $TRAVIS_PHP_VERSION $php_extra | xargs -n1 bash -c '(</dev/tty run_tests $0)' || false
0 commit comments