Skip to content

Commit 411e0c5

Browse files
minor symfony#28288 [travis] disable symfony/flex during phpunit install (nicolas-grekas)
This PR was merged into the 2.8 branch. Discussion ---------- [travis] disable symfony/flex during phpunit install | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | no | Fixed tickets | - | License | MIT | Doc PR | - Fixing https://travis-ci.org/symfony/symfony/jobs/421206649 Commits ------- 4623fe7 [travis] disable symfony/flex during phpunit install
2 parents a8b1605 + 4623fe7 commit 411e0c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ install:
221221
([[ $deps ]] && cd src/Symfony/Component/HttpFoundation; composer config platform.ext-mongodb 1.5.0; composer require --dev --no-update mongodb/mongodb)
222222
fi
223223
tfold 'composer update' $COMPOSER_UP
224-
tfold 'phpunit install' ./phpunit install
224+
if [[ $TRAVIS_PHP_VERSION = 5.* || $TRAVIS_PHP_VERSION = hhvm* ]]; then
225+
tfold 'phpunit install' 'composer global remove symfony/flex && ./phpunit install && composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master'
226+
else
227+
tfold 'phpunit install' ./phpunit install
228+
fi
225229
if [[ $deps = high ]]; then
226230
echo "$COMPONENTS" | parallel --gnu -j10% "tfold {} 'cd {} && $COMPOSER_UP && $PHPUNIT_X$LEGACY'"
227231
elif [[ $deps = low ]]; then

0 commit comments

Comments
 (0)