Docker Image to run tests under php7, contains xdebug, phpunit, composer, postgres
2.3K
A series of docker files with different things for working with Composer, PHPUnit, XDebug, Sqlite3, MySQL and Postgres to make CI/CD a little easier.
Intended for usage in a CI environment (Travis, Gitlab, Drone, etc.):
The docker hub page can be found here: epcallan/php7-testing-phpunit
7.1-phpunit6: PHP7.1, PHPUnit 6.x7.1-phpunit5: PHP7.1, PHPUnit 5.x7.0-phpunit6: PHP7.0, PHPUnit 6.x7.0-phpunit5: PHP7.0, PHPUnit 5.xdocker pull janrtr/php7-testing-phpunit:7.1-phpunit5
build:
image: janrtr/php7-testing-phpunit:7.1-phpunit5
commands:
- composer install
- phpunit
image: janrtr/php7-testing-phpunit:7.1-phpunit5
before_script:
- composer install
in_docker:
stage: test
script:
- phpunit
only:
- master
If you want to add ODBC or another PHP extension to the mix, simply clone this repository and add the additions into any of the Dockerfile's and then build them (for example: docker build php7.1-phpunit6).
If you'd like to see this enable a basic extension, feel free to submit an issue.
MIT Licensed. For complete license, see LICENSE
Content type
Image
Digest
Size
200.8 MB
Last updated
over 8 years ago
docker pull janrtr/docker-phpunit-php7:7.1-phpunit6