Skip to content

Commit

Permalink
Change switch-symfony target to use Symfony Flex instead of requiring…
Browse files Browse the repository at this point in the history
… symfony/symfony
  • Loading branch information
niels-nijens committed Oct 27, 2023
1 parent 838a162 commit a9cab21
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ ifeq ($(filter $(version),5.3 5.4 6.0 6.1 6.2 6.3),)
sed -i -e "s/\(\s\+\)\(storage_factory_id:\)/\1# \2/" tests/Functional/App/config.yaml
endif

composer require "symfony/symfony:$(version).*" --dev --no-update
composer update symfony/* monolog/monolog --prefer-dist --with-all-dependencies --no-progress
.PHONY: switch-symfony-version
composer global require symfony/flex --no-interaction || true
composer global config --no-plugins allow-plugins.symfony/flex true
SYMFONY_REQUIRE=$(version).* composer update symfony/* monolog/monolog --prefer-dist --with-all-dependencies --no-progress
composer global config --no-plugins allow-plugins.symfony/flex false
.PHONY: switch-symfony

test: install ## Run the unit tests.
./vendor/bin/phpunit
Expand Down

0 comments on commit a9cab21

Please sign in to comment.