Open GlennM opened 4 years ago
You can setup mailhog or similar (maildev) as a service, but i don't know if this is possible on gitlab-ci, i myself never used for this purpose. If you are in Laravel you can use the LOG driver
+1 for the Laravel log driver, or perhaps you could mock sendmail in your unit tests?
Thanks for your replies.
I am familiar with Laravel, but this is a non-Laravel project.
Hi,
I'm running unit tests via PHPUnit on GitLab CI and I do get the following error:
sh: 1: /usr/sbin/sendmail: not found
In this case, I don't need any real email to be send. What would be the best way to incorporate this (e.g. combine MailHog with this Docker image)? Any other suggestions?
Thanks