Have a docker image based on PHP image (not ubuntu)
Tasks that must be done
... to have something working correctly.
-
Have a CI file based on a PHP Image for Unit Tests -
Have PHPUnit working -
Add default dataset ? With Migrations ? ==> not needed for unit testing
Optimisations that could be done
-
Have Code coverage running -
Have PHP CodeSniffer running -
Create an intermediate Docker Image to speed up job execution -
Use image PHP-apache-alpine image instead of PHP-apache to lower image size (rewriting docker_install.sh
may be needed) => later
Documentation
Useful links:
- Testing PHP Projects
- How to debug a job locally
- Test and deploy Laravel applications with GitLab CI/CD and Envoy
- Use PostgreSQL with the Docker executor
- Working CI for custom Postgres env vars
Other docs:
- Article on Gitlab.com written by Linagora, may be of interest with composer
- Blog article: Gitlab CI for PHP applications
CakePHP Migration:
Edited by Matthieu FAURE