Skip to content

Commit

Permalink
Minor Makefile improvements: psr-4 validation + verbose unit tests fo…
Browse files Browse the repository at this point in the history
…r make unit
  • Loading branch information
peteraba committed Mar 7, 2021
1 parent 9eb89a4 commit 46a53de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ build:
XDEBUG_MODE=off ./vendor/bin/phpcs -p --colors --cache --standard=PSR12 tests
XDEBUG_MODE=off ./vendor/bin/phpmd src text .phpmd.xml
XDEBUG_MODE=off ./vendor/bin/phan --color
XDEBUG_MODE=off composer install --no-progress --prefer-dist --optimize-autoloader

precommit:
git diff --cached --name-only --diff-filter=ACM | grep \\.php | xargs -n 1 php -l
XDEBUG_MODE=off ./vendor/bin/phpunit
XDEBUG_MODE=off ./vendor/bin/phpcs -p --colors --cache src
XDEBUG_MODE=off ./vendor/bin/phpcs -p --colors --cache --standard=PSR12 tests
XDEBUG_MODE=off composer install --no-progress --prefer-dist --optimize-autoloader

install:
ifeq (,$(wildcard /usr/local/bin/composer))
Expand All @@ -24,10 +26,10 @@ endif
XDEBUG_MODE=off composer install --no-progress --prefer-dist --optimize-autoloader

update:
XDEBUG_MODE=off composer update
XDEBUG_MODE=off composer update --no-progress

unit:
XDEBUG_MODE=off ./vendor/bin/phpunit
XDEBUG_MODE=off ./vendor/bin/phpunit -v

coverage:
XDEBUG_MODE=coverage ./vendor/bin/phpunit -c phpunit-cov.xml
Expand Down

0 comments on commit 46a53de

Please sign in to comment.