This docker container allows you run phpunit tests and other CI tools on sebastianbergmann/phpunit
docker pull l3ikal/docker-phpunit
- Fork sebastianbergmann/phpunit project if you have not already
- Clone the forked repo into your machine
- Install the dependencies
docker run -it --rm --name phpunit-app -v $PWD:/usr/src/myapp -w /usr/src/myapp l3ikal/docker-phpunit:php-7.3 composer install
- Do your magic
- With the scripts below make sure that you didn't break anything
docker run -it --rm --name phpunit-app -v $PWD:/usr/src/myapp l3ikal/docker-phpunit:php-7.3 composer install
$ docker run -it --rm --name phpunit-app -v $PWD:/usr/src/myapp l3ikal/docker-phpunit:php-7.3 php ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose
docker run -it --rm --name phpunit-app -v $PWD:/usr/src/myapp l3ikal/docker-phpunit:php-7.3 php ./tools/psalm --config=.psalm/static-analysis.xml --no-progress --show-info=false
$ docker run -it --rm --name phpunit-app -v $PWD:/usr/src/myapp l3ikal/docker-phpunit:php-7.3 php ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats