.PHONY : install beautify up down test-unit test-integration debug-test-integration
.DEFAULT : install

install:
	composer install -o
beautify:
	vendor/bin/phpcbf --standard=PSR2 src tests
up:
	docker-compose up -d --build
down:
	docker-compose down --remove-orphans
test-unit:
	vendor/bin/phpunit --testdox --verbose --color
test-integration: up
	sleep 20
	@-vendor/bin/phpunit --color --testdox --verbose -c phpunit-integration.xml.dist
	make down
debug-test-integration:
	php -dxdebug.remote_mode=jit vendor/bin/phpunit --no-coverage --color --testdox --group debug -c phpunit-integration.xml.dist