1
0
mirror of synced 2024-12-04 10:56:06 +03:00
atol-online-client/Makefile

17 lines
339 B
Makefile
Raw Permalink Normal View History

2024-01-27 19:36:37 +03:00
ifneq (,$(shell (type docker-compose 2>&1 >/dev/null && echo 1) || true))
PHP=docker-compose run --rm --no-deps php
else
PHP=php
endif
PHP_CONSOLE_DEPS=vendor
vendor: composer.json
@$(PHP) composer install -o -n --no-ansi
@touch vendor || true
phpunit: $(PHP_CONSOLE_DEPS)
@$(PHP) vendor/bin/phpunit --color=always
check: phpunit