New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide the commands to run Symfony Tests through Docker 🐳 #47102
Provide the commands to run Symfony Tests through Docker 🐳 #47102
Conversation
8e63c60
to
a5540b3
Compare
It looks like the test
|
c3fcf9d
to
fcbec12
Compare
How are we with this? |
Ubuntu 22.04.1 LTS was released 2 months ago, so all users of Ubuntu can install PHP 8.1 now. It should allow most of the Linux users (¹) to run tests without Docker. This PR may be updated to allow different versions of PHP, including PHP 8.3 whose development will start a the end of this year. (¹) I don't have numbers but it looks like Ubuntu is the most popular distro. |
so that files don't belong to root:root
c7f13b0
to
a4031d2
Compare
Co-authored-by: Jérôme Tamarelle <jerome@tamarelle.net>
Let's close this, this feature didn't get much traction. |
This PR add some scripts to Composer:
They allow anyone to run tests through Docker easily, with all the benefits of Docker: the environment is independent of the system, the system dependencies can be added easily, the build is reproducible, etc.
How to use it:
(these are shortcuts to
composer run-script …
)We can also specify another version of PHP:
env DOCKER_PHP_VERSION="8.1" composer docker-build
Try it:
git clone --branch add-composer-script-and-docker-for-development --single-branch \ --depth 5 -- git@github.com:alexislefebvre/symfony.git cd symfony/ composer docker-build composer docker-composer composer docker-tests -- src/Symfony/Component/Yaml/
I only tested on Linux, it may not work on Windows.
Caveat: Running the whole test suite with
composer run-script docker-tests
crash with the output^[[54;19R
and I don't understand why. It is probably not due to a timeout from Composer since it appears before the default timeout of 5 minutes.example with full output