mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-07 07:06:26 +02:00
update
This commit is contained in:
parent
6a0e214cc3
commit
9ef2f57a28
4 changed files with 102 additions and 100 deletions
16
Makefile
16
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue