[travis] fix requiring mongodb/mongodb before composer up

This commit is contained in:
Nicolas Grekas 2018-08-03 14:53:54 +02:00
parent 548e9f71b7
commit fa4d95a3ba
1 changed files with 2 additions and 2 deletions

View File

@ -208,11 +208,11 @@ install:
break
fi
phpenv global ${PHP/hhvm*/hhvm}
tfold 'composer update' $COMPOSER_UP
tfold 'phpunit install' ./phpunit install
if [[ $PHP = 7.* ]]; then
([[ $deps ]] && cd src/Symfony/Component/HttpFoundation; composer require --dev --no-update mongodb/mongodb)
fi
tfold 'composer update' $COMPOSER_UP
tfold 'phpunit install' ./phpunit install
if [[ $deps = high ]]; then
echo "$COMPONENTS" | parallel --gnu -j10% "tfold {} 'cd {} && $COMPOSER_UP && $PHPUNIT_X$LEGACY'"
elif [[ $deps = low ]]; then