This commit is contained in:
osaajani 2020-02-18 03:09:59 +01:00
parent 6a0e214cc3
commit 9ef2f57a28
4 changed files with 102 additions and 100 deletions

View file

@ -1,4 +1,4 @@
.PHONY: all install composer_install move_dir migrate
.PHONY: all install composer_install move_dir migrate fix
INSTALL_DIR=$(DESTDIR)/opt/raspisms2
ENV=prod
@ -9,20 +9,15 @@ all: install
vendor: composer.phar composer.json
./composer.phar self-update
./composer.phar validate
./composer.phar install
migrate: vendor
vendor/bin/phinx migrate --environment=$(ENV)
move_dir:
mv . $(INSTALL_DIR)
cd $(INSTALL_DIR)
install: move_dir vendor migrate
install: vendor migrate
clean:
@ -31,3 +26,8 @@ clean:
uninstall:
rm -rf .
fix:
tests/php-cs-fixer/run.php fix
tests/phpstan/run.php analyse