PHP 5.6, 7.0, 7.1, 7.2, 7.3 for WordPress CI and running tests
10K+
This repository contains a set of utilities for running PHP tests for WordPress plugins and themes via Gitlab CI.
These images are based on official Docker PHP images built upon Alpine Linux with additional modules needed for testing with WordPress.
You can find these docker images at docker hub.
The goal of these tools is to automate as much as possible of routine work related to configuring the runner so you can concentrate on writing tests for your code.
These tags contain respective PHP Versions, compiled with bz2, gd, intl, mysqli and zip extensions for better compatibility with WordPress related testing.
Special case is 5.6, which contains additional mysql extension(original, DEPRECATED), for testing with some lower versions of WordPress.
Apart from the extensions and softwares mentioned above, these tags contain additional extensions namely Xdebug, Imagick, MongoDB, and Redis, which are installed from PECL.
It has WordPress Coding Standards added and configured, running with PHP 7.2 on Alpine. We're using it as a separate image as PHPCS is first run to verify the code and only after that PHPUnit is run. So no point in including PHPCS with WPCS rules in main images.
This image is for automated release of plugins/themes to WordPress.org
You can go through a sample gitlab configuration for a
WordPress plugin here.
Make sure to include both, the gitlab configuration file .gitlab-ci.yml,
.phpcs.xml.dist, phpunit.xml.dist, tests folder and the bin folder with install-wp-tests.sh
Content type
Image
Digest
Size
247.5 MB
Last updated
over 5 years ago
docker pull gagan0123/php:7.1-extended