A Dockerfile to have the following components ready-to-go without having to install them.
Intended for usage in a CI environment (Drone/Gitlab/etc.):
- PHP7 (based off the official PHP Docker, using
php:7-cli
) - XDebug (Latest through PECL)
- Composer (Latest through installer)
- PHPUnit (Latest through Composer)
The docker hub page can be found here: hub.docker.com/r/epcallan/phpunit-php7
docker pull epcallan/phpunit-php7
build:
image: epcallan/phpunit-php7
commands:
- composer install
- phpunit
image: epcallan/phpunit-php7
before_script:
- composer install
in_docker:
stage: test
script:
- phpunit
only:
- master