ORM/Makefile

24 lines
441 B
Makefile
Raw Normal View History

SHELL:=/bin/bash
UID:=$(shell id -u)
DC_RUN:=docker-compose run -u ${UID} --rm
clear:
2019-09-03 12:56:00 +00:00
clear;
setup:
docker-compose down -v
${DC_RUN} test composer install
${DC_RUN} test sleep 15
migrate:
${DC_RUN} test vendor/bin/phinx rollback
${DC_RUN} test vendor/bin/phinx migrate
regen:
${DC_RUN} test bin/laminator
clean:
${DC_RUN} test vendor/bin/php-cs-fixer fix
2019-09-03 12:56:00 +00:00
test: clear setup migrate regen clean
${DC_RUN} test vendor/bin/phpunit