8000 [travis] cache composer.lock files for deps=low · symfony/symfony@bbf4319 · GitHub
[go: up one dir, main page]

Skip to content

Commit bbf4319

Browse files
[travis] cache composer.lock files for deps=low
1 parent f50ee9b commit bbf4319

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,10 @@ install:
216216
if [[ $deps = high ]]; then
217217
echo "$COMPONENTS" | parallel --gnu -j10% "tfold {} 'cd {} && $COMPOSER_UP && $PHPUNIT_X$LEGACY'"
218218
elif [[ $deps = low ]]; then
219-
echo "$COMPONENTS" | parallel --gnu -j10% "tfold {} 'cd {} && $COMPOSER_UP --prefer-lowest --prefer-stable && $PHPUNIT_X'"
219+
[[ -e ~/php-ext/composer-lowest.lock.tar ]] && tar -xf ~/php-ext/composer-lowest.lock.tar
220+
tar -cf ~/php-ext/composer-lowest.lock.tar --files-from /dev/null
221+
echo "$COMPONENTS" | parallel --gnu -j10% "tfold {} 'cd {} && ([ -e composer.lock ] && composer validate && composer install --no-progress --no-suggest --ansi || $COMPOSER_UP --prefer-lowest --prefer-stable) && $PHPUNIT_X'"
222+
echo "$COMPONENTS" | xargs -n1 -I{} tar --append -f ~/php-ext/composer-lowest.lock.tar {}/composer.lock
220223
elif [[ $PHP = hhvm* ]]; then
221224
$PHPUNIT --exclude-group no-hhvm,benchmark,intl-data
222225
else

0 commit comments

Comments
 (0)
0