2020-08-24 17:00:59 +00:00
|
|
|
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:
|
2020-08-24 17:00:59 +00:00
|
|
|
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
|
|
|
|
2020-08-24 17:00:59 +00:00
|
|
|
test: clear setup migrate regen clean
|
|
|
|
|
${DC_RUN} test vendor/bin/phpunit
|