-
-
Notifications
You must be signed in to change notification settings - Fork 27
add simple-phpunit wrapper tool #35
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
Conversation
|
note the test is preceded by an auto-install of the wrapped phpunit, causing a bit of extra output: https://travis-ci.com/jakzal/toolbox/jobs/169989651#L1303 not sure how to avoid it, then again it's needed for testing 😅 |
|
Hm... could we try sth like: Not sure about exact syntax. I'd like to make sure all required files are installed on the image when we run this on docker. |
|
the wrapped installation are not required files, those can vary depending on SYMFONY_PHPUNIT_VERSION env, as such multiple dists live in it's a phpunit version manager basically :) so what about AFAIK there's no way to opt out from auto-installing. It's a wrapper, it's more or less required by design :) as such we should simply test the composer installation is OK. |
|
So how is it going to work on docker? |
|
i've updated the test, it simply checks if the command exists: let's see :) edit: looks good 👌 https://travis-ci.com/jakzal/toolbox/jobs/170000687#L1274 |
|
But what will happen once we install it on a docker image? Wouldn't each call trigger a phpunit installation? |
|
Hi @jakzal, it depends ...
If i understand well, we'll only lose it once the container/image gets destroyed/removed, triggering a re-install each time. The wrapped binary can be installed in a custom location (ref), or by running a container with Currently i'm doing the same already by leveraging |
That's why I was asking if something like the following helped: |
|
done. i think it's fine to pre-install the default version of the wrapped phpunit. phpunit 7 support is added in current symfony master: v.s. current stable 4.2.2 https://github.com/symfony/symfony/blob/v4.2.2/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit#L48 which supports phpunit 6 as such we default install phpunit 6 still: https://travis-ci.com/jakzal/toolbox/jobs/170134793#L803 |
|
Great job! I'll have a closer look asap. |
fixes #32
php bin/toolbox.php install👍bin/toolbox.php list-tools👍php bin/toolbox.php test👍php bin/devkit.php update:readme👍