Skip to content

Commit 2ea72b0

Browse files
authored
chore(makefile): Improve the outdated_fixtures command (#829)
1 parent d0d8783 commit 2ea72b0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,11 @@ build:
9393
rm $(PHP_SCOPER_PHAR_BIN) || true
9494
$(MAKE) $(PHP_SCOPER_PHAR_BIN)
9595

96-
.PHONY: outdated_fixtures
97-
outdated_fixtures: ## Reports outdated dependencies
98-
outdated_fixtures:
99-
find fixtures -name 'composer.json' -type f -depth 2 -exec dirname '{}' \; | xargs -I % sh -c 'echo "Checking %;" $$(composer install --working-dir=% --ansi && composer outdated --direct --working-dir=% --ansi)'
96+
.PHONY: fixtures_composer_outdated
97+
fixtures_composer_outdated: ## Reports outdated dependencies
98+
fixtures_composer_outdated:
99+
@find fixtures -name 'composer.json' -type f -depth 2 -exec dirname '{}' \; | xargs -I % sh -c 'printf "Installing dependencies for %;\n" $$(composer install --working-dir=% --ansi)'
100+
@find fixtures -name 'composer.json' -type f -depth 2 -exec dirname '{}' \; | xargs -I % sh -c 'printf "Checking dependencies for %;\n" $$(composer outdated --direct --working-dir=% --ansi)'
100101

101102
.PHONY: test
102103
test: ## Runs all the tests

0 commit comments

Comments
 (0)