Makefile 366 B

123456789101112131415161718192021222324252627282930
  1. .PHONY: all
  2. all: build
  3. .PHONY: build
  4. build: lint cs test
  5. lintfiles := $(shell find lib test -type f -iname '*.php')
  6. .PHONY: ${lintfiles}
  7. ${lintfiles}:
  8. php -l $@
  9. .PHONY: lint
  10. lint: $(lintfiles)
  11. .PHONY: cs
  12. cs:
  13. vendor/bin/php-cs-fixer --quiet --no-interaction fix; true
  14. .PHONY: test
  15. test:
  16. vendor/bin/phpunit
  17. .PHONY: typecheck
  18. typecheck:
  19. vendor/bin/psalm