1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
vendor/composer/installed.json: composer.json
composer install
.PHONY: deps
deps: vendor/composer/installed.json
.PHONY: test
test: deps
php vendor/bin/phpunit
.PHONY: apidocs
apidocs: docs/api/index.html
phpDocumentor.phar:
wget https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0-rc/phpDocumentor.phar
wget https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0-rc/phpDocumentor.phar.asc
library_files=$(shell find library -name '*.php')
docs/api/index.html: vendor/composer/installed.json $(library_files) phpDocumentor.phar
php phpDocumentor.phar run -d library -t docs/api
.PHONY: test-all
test-all: test-74 test-73
.PHONY: test-74
test-74: deps
docker run -it --rm -v "$$PWD":/opt/mockery -w /opt/mockery php:7.4-cli php vendor/bin/phpunit
.PHONY: test-73
test-73: deps
docker run -it --rm -v "$$PWD":/opt/mockery -w /opt/mockery php:7.3-cli php vendor/bin/phpunit
|