Sender | Message | Time |
---|---|---|
14 Aug 2024 | ||
Ideally yes | 19:11:14 | |
8.2.14 doesn't exists IIRC | 19:11:22 | |
8.2.14 Released: 21 Dec 2023 | 19:19:18 | |
I probably forgot it perhaps | 20:04:18 | |
Looks like php core team too as they haven't patched it :) | 20:04:51 | |
php 8.1.28 builds in php-src-nix | 20:05:41 | |
I'm testing 8.1.18 but looks like 8.1.x branch should be fine now | 20:06:09 | |
I'll probably have some time next week to play around with stabilizing other branches | 20:07:29 | |
oki | 20:16:45 | |
16 Aug 2024 | ||
06:51:09 | ||
Hi everyone, does someone have a public project where phpunit is working and the dev dependencies aren't part of the final derivation?
| 06:53:18 | |
* Hi everyone, does someone have a public project where phpunit is working and the dev dependencies aren't part of the final derivation?
| 06:53:41 | |
* Hi everyone, does someone have a public project where phpunit is working and the dev dependencies aren't part of the final derivation?
With poetry2nix this is quite easy to do but I haven't figured out how to do it with PHP so that I don't have to redownload all the composer dependencies every time. | 06:55:45 | |
Let me find you an example... | 07:22:00 | |
This might help you: https://github.com/loophp/nix-shell/blob/master/templates/basic/flake.nix you have a couple of PHP apps packaged. | 07:22:45 | |
And here you have an example on how to add a flake.nix to the symfony/demo project: https://github.com/drupol/symfony-demo/pull/1 | 07:23:35 | |
Oh and it builds the OCI image too | 07:23:50 | |
you should have everything you need there | 07:24:01 | |
Forget what I just said, that last example if very outdated. | 07:25:14 | |
composer-plugin-nixify looks interesting thank you. With the first examples I see that it gets phpunit from Nixpkgs, I could do that but I would prefer to let composer deal with the PHP packages if possible. That way Nix isn't a "hard dependency". | 07:31:15 | |
In reply to @drupol:matrix.orgAh to bad :) | 07:31:26 | |
Then just use buildComposerProject builder from nixpkgs and let phpunit in the require-dev section. | 07:32:22 | |
That only works if I only use phpunit for testing right? Otherwise I would have to build two buildComposerProject one for testing and one for production? | 07:34:56 | |
When you build a project uising buildComposerProject it is inherently made for production. | 07:42:15 | |
Since it, by default, doesn't include require-dev . I don't see the point doing it either. | 07:42:40 | |
Perhaps I'm misunderstanding your request? | 07:42:51 | |
Maybe, let me try to rephrase. | 07:43:38 | |
I would like to run phpunit in a Gitlab CI. Nix devShell will be used to provide PHP and Gitlab provides a MariaDB container. In an existing project we use imperative containers for the unittests. What I tried so far is a fixed output derivation which looks like the following.
| 07:53:48 | |
You cannot have --no-dev and install phpunit with require-dev dependencies at the same time | 07:56:16 | |
in this case you have to install phpunit separately | 07:56:37 |