diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2d3dca5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +.PHONY: test + +test: + docker-compose run --rm app composer test diff --git a/README.md b/README.md index ef22f21..d9baa95 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,8 @@ Because of the APCu dependency, install extension before `composer install` ```bash printf "\n" | pecl install apcu ``` + +### Local development +```bash +make test +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..93c4ea7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: '3' +services: + app: + image: composer:2.3.7 + working_dir: /home/app/src + volumes: + - .:/home/app/src