8000 minor #33657 [travis] fix testing flipped versions (nicolas-grekas) · symfony/symfony@d4e6a37 · GitHub
[go: up one dir, main page]

Skip to content

Commit d4e6a37

Browse files
minor #33657 [travis] fix testing flipped versions (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [travis] fix testing flipped versions | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- 68f6aef [travis] fix testing flipped versions
2 parents 0bc6b91 + 68f6aef commit d4e6a37

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,16 @@ install:
272272
273273
if [[ $COMPONENTS && $LEGACY && $TRAVIS_PULL_REQUEST != false ]]; then
274274
export FLIP='🙃'
275-
COMPONENTS=$(echo "$COMPONENTS" | xargs dirname | sort)
276275
SYMFONY_VERSION=$(echo $SYMFONY_VERSION | awk '{print $1 - 1}')
276+
echo -e "\\n\\e[33;1mChecking out Symfony $SYMFONY_VERSION and running tests with patched components as deps\\e[0m"
277277
export SYMFONY_REQUIRE=">=$SYMFONY_VERSION"
278278
export COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev
279-
echo -e "\\n\\e[33;1mChecking out Symfony $SYMFONY_VERSION and running tests with patched components as deps\\e[0m"
280279
git fetch --depth=2 origin $SYMFONY_VERSION
281280
git checkout -m FETCH_HEAD
281+
COMPONENTS=$(echo "$COMPONENTS" | xargs dirname | xargs -n1 -I{} bash -c "[ -e '{}/phpunit.xml.dist' ] && echo '{}'" | sort)
282282
(cd src/Symfony/Component/HttpFoundation; composer config platform.ext-mongodb 1.6.0; composer require --dev --no-update mongodb/mongodb)
283-
echo "$COMPONENTS" | parallel --gnu "tfold {} 'cd {} && $COMPOSER_UP && $PHPUNIT_X$LEGACY'" || X=1
283+
[[ ! $COMPONENTS ]] || tfold 'phpunit install' SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 ./phpunit install
284+
[[ ! $COMPONENTS ]] || echo "$COMPONENTS" | parallel --gnu "tfold {} 'cd {} && $COMPOSER_UP && $PHPUNIT_X$LEGACY'" || X=1
284285
fi
285286
286287
[[ ! $X ]] || (exit 1)

0 commit comments

Comments
 (0)
0