Automated WordPress PHPUnit Testing on GitLab CI

In a previous post, i showed us how to set up automated PHP testing on GitLab CI.

If you are a WordPress developer and has a test suite already for your plugin, theme or WordPress powered web application and would love to use the GitLab CI to run it; my .gitlab-ci.yml below will come in handy.


The YAML configuration above assume you have your WordPress unit test created with WP CLI hence the bash bin/ wordpress_test root mysql mysql $WP_VERSION. Otherwise replace it whith your own WordPress PHP test setup.

Also, it will run three jobs.
Feel free to make modifications to meet your use case.

La Fin!