I'm trying to use the SYMFONY_REQUIRE environment variable to run a test matrix job in a CI job when developing a bundle. Basically the commands look like this:
I don't have a composer.lock or symfony.lock in my repo at this point. When executing the CI job Flex tries to create the symfony.lock and run the recipes for the required libraries, which is not optimal. Even if the composer.json only requires phpunit/phpunit as dev requirement, it will install a bootstrap.php which needs the Symfony Dotenv component to work. (I do not have the Symfony Dotenv component in my composer.json.)
Is there a way to run composer install and use Flex/SYMFONY_REQUIRE to set the version for Symfony components without running the recipes?
I'm trying to use the
SYMFONY_REQUIRE
environment variable to run a test matrix job in a CI job when developing a bundle. Basically the commands look like this:I don't have a
composer.lock
orsymfony.lock
in my repo at this point. When executing the CI job Flex tries to create thesymfony.lock
and run the recipes for the required libraries, which is not optimal. Even if thecomposer.json
only requiresphpunit/phpunit
as dev requirement, it will install abootstrap.php
which needs the Symfony Dotenv component to work. (I do not have the Symfony Dotenv component in mycomposer.json
.)Is there a way to run
composer install
and use Flex/SYMFONY_REQUIRE
to set the version for Symfony components without running the recipes?