Skip to content

Docker Image to run tests under php7, contains xdebug, phpunit, composer

License

Notifications You must be signed in to change notification settings

c-thomasFR/docker-phpunit-php7

 
 

Repository files navigation

PHP7 - PHPUNIT Docker

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

Usage

Command Line

docker pull epcallan/phpunit-php7

Drone

build:
  image: epcallan/phpunit-php7
  commands:
    - composer install
    - phpunit

Gitlab

image: epcallan/phpunit-php7

before_script:
  - composer install

in_docker:
  stage: test
  script:
    - phpunit
  only:
    - master

About

Docker Image to run tests under php7, contains xdebug, phpunit, composer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%