From 7a2942fe65b94ac86948d806620e060a4f7fda88 Mon Sep 17 00:00:00 2001 From: Brabli <67018167+Brabli@users.noreply.github.com> Date: Thu, 21 Jul 2022 15:07:57 +0100 Subject: [PATCH] Copy makefile --- Makefile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c99ebbe..e8eec65 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,16 @@ -.PHONY: tests +PHP = docker compose run php + +.PHONY: composer_install composer_update static_analysis tests + +composer_install: + @$(PHP) composer install + +composer_update: + @$(PHP) composer update + +static_analysis: + @$(PHP) vendor/bin/psalm + tests: - rm -r var/cache/ - vendor/bin/phpunit + @$(PHP) rm -rf var/cache + @$(PHP) vendor/bin/phpunit