From af944156e39eb81fa7dcba3c825e3321ed750d76 Mon Sep 17 00:00:00 2001 From: Vincent Letourneau Date: Thu, 24 Sep 2020 13:32:04 +0200 Subject: [PATCH] Update some commands Change documentation generator with PHPDoc. Apigen poses too many dependency conflicts and does not seem to be maintained. PHPDoc offers a Docker image allowing to externalize the installation and the dependencies. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 86b5d3c..b396bfd 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ init: @$(shell cp -n $(shell pwd)/web/app/composer.json.dist $(shell pwd)/web/app/composer.json 2> /dev/null) apidoc: - @docker-compose exec -T php php -d memory_limit=256M -d xdebug.profiler_enable=0 ./app/vendor/bin/apigen generate app/src --destination app/doc + @docker run --rm -v $(shell pwd):/data phpdoc/phpdoc -i=vendor/ -d /data/web/app/src -t /data/web/app/doc @make resetOwner clean: @@ -70,8 +70,7 @@ mysql-restore: phpmd: @docker-compose exec -T php \ ./app/vendor/bin/phpmd \ - ./app/src \ - text cleancode,codesize,controversial,design,naming,unusedcode + ./app/src text cleancode,codesize,controversial,design,naming,unusedcode test: code-sniff @docker-compose exec -T php ./app/vendor/bin/phpunit --colors=always --configuration ./app/