Makefile 972 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. UPLOAD_HOST=phpgeo.marcusjaschen.de
  2. UPLOAD_PATH=phpgeo.marcusjaschen.de
  3. PHP ?= php
  4. .PHONY: docs
  5. docs: daux
  6. .PHONY: daux
  7. daux:
  8. rm -Rf build/daux
  9. mkdir -p build/daux
  10. docker run --rm -v "$(PWD)":/src -w /src daux/daux.io daux generate -d build/daux
  11. .PHONY: clean
  12. clean:
  13. rm -Rf build
  14. .PHONY: upload_docs
  15. upload_docs: docs
  16. rsync --recursive --delete build/daux/ $(UPLOAD_HOST):$(UPLOAD_PATH)/
  17. .PHONY: ci
  18. ci: lint coding-standards composer-validate sniff static-analysis-psalm unit-tests
  19. .PHONY: coding-standards
  20. coding-standards: sniff
  21. .PHONY: composer-validate
  22. composer-validate:
  23. composer validate --no-check-publish
  24. .PHONY: lint
  25. lint:
  26. $(PHP) ./vendor/bin/parallel-lint src
  27. .PHONY: sniff
  28. sniff:
  29. # the `-` prefix ignores the exit status of the command
  30. -$(PHP) ./vendor/bin/phpcs --standard=codesniffer_rules.xml src
  31. .PHONY: static-analysis-psalm
  32. static-analysis-psalm:
  33. $(PHP) ./vendor/bin/psalm
  34. .PHONY: unit-tests
  35. unit-tests:
  36. $(PHP) ./vendor/bin/phpunit