Skip to content
Snippets Groups Projects
Commit e29f0ac9 authored by Fabrice Gangler's avatar Fabrice Gangler :art:
Browse files

chore: clean up Make file

parent 934d8484
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,8 @@ DOCKER_COMPOSE = $(WEBAPP_DIR)/docker-compose ...@@ -10,7 +10,8 @@ DOCKER_COMPOSE = $(WEBAPP_DIR)/docker-compose
CONSOLE = $(WEBAPP_DIR)/bin/console CONSOLE = $(WEBAPP_DIR)/bin/console
PHPUNIT = $(WEBAPP_DIR)/bin/phpunit PHPUNIT = $(WEBAPP_DIR)/bin/phpunit
## === SYMFONY Routes ================================================ ##
##--- SYMFONY Routes ----------------------------------------------------------
verif_autodoc_routes: ## Check that Symfony route auto-documentation files are up to date verif_autodoc_routes: ## Check that Symfony route auto-documentation files are up to date
$(CONSOLE) debug:route --env=prod --format=json --show-controllers > $(AUTO_DOC_ROUTES_DIR)/webapp_routes_prod.json $(CONSOLE) debug:route --env=prod --format=json --show-controllers > $(AUTO_DOC_ROUTES_DIR)/webapp_routes_prod.json
...@@ -45,18 +46,16 @@ routes: ## Display Symfony routes ...@@ -45,18 +46,16 @@ routes: ## Display Symfony routes
.PHONY: routes .PHONY: routes
## === SYMFONY database ================================================ ##
##--- SYMFONY database --------------------------------------------------------
migration_database: ## Apply Doctrine migrations migration_database: ## Apply Doctrine migrations
cd "${WEBAPP_DIR}" && bin/console doctrine:migrations:migrate -n --env=dev cd "${WEBAPP_DIR}" && bin/console doctrine:migrations:migrate -n --env=dev
cd "${WEBAPP_DIR}" && bin/console doctrine:migrations:list --env=dev cd "${WEBAPP_DIR}" && bin/console doctrine:migrations:list --env=dev
.PHONY: migration_database .PHONY: migration_database
## === DOCKER ================================================ ##
##--- DOCKER ------------------------------------------------------------------
cfssl_run_fake_server: ## Run fake CFSSL server
cd "${WEBAPP_DIR}/data/cfssl_fake-server" && php -S 127.0.0.1:9999
.PHONY: cfssl_run_fake_server
docker: ## Run Docker containers (database, mailcatcher) docker: ## Run Docker containers (database, mailcatcher)
cd "${WEBAPP_DIR}/docker" && docker-compose up cd "${WEBAPP_DIR}/docker" && docker-compose up
...@@ -74,7 +73,8 @@ docker_with_empty-database: ## Run Docker containers (database, mailcatcher) wi ...@@ -74,7 +73,8 @@ docker_with_empty-database: ## Run Docker containers (database, mailcatcher) wi
.PHONY: docker_with_empty-database .PHONY: docker_with_empty-database
## === TESTS ================================================ ##
##--- TESTS -------------------------------------------------------------------
tests: ## Run all tests (PhpUnit) tests: ## Run all tests (PhpUnit)
rm -rvf "${WEBAPP_DIR}/var/tmp/" || true rm -rvf "${WEBAPP_DIR}/var/tmp/" || true
cd "${WEBAPP_DIR}" && bin/console doctrine:database:drop --force --env=test || true cd "${WEBAPP_DIR}" && bin/console doctrine:database:drop --force --env=test || true
...@@ -120,7 +120,8 @@ tests_repeat: ## Run all tests (PhpUnit) multiple times ...@@ -120,7 +120,8 @@ tests_repeat: ## Run all tests (PhpUnit) multiple times
.PHONY: tests_repeat .PHONY: tests_repeat
## === CODING STANDART ================================================ ##
##--- CODING STANDART ---------------------------------------------------------
sf_coding-standard: ## ... sf_coding-standard: ## ...
bin/php-cs-fixer fix -vvv --diff --dry-run webapp/src/ bin/php-cs-fixer fix -vvv --diff --dry-run webapp/src/
bin/php-cs-fixer fix -vvv --diff --dry-run webapp/tests/ bin/php-cs-fixer fix -vvv --diff --dry-run webapp/tests/
...@@ -148,7 +149,8 @@ php_fix-coding-standard: ## ... ...@@ -148,7 +149,8 @@ php_fix-coding-standard: ## ...
bin/phpcbf --standard=PSR12 --colors webapp/src/ webapp/tests/ bin/phpcbf --standard=PSR12 --colors webapp/src/ webapp/tests/
.PHONY: php_fix-coding-standard .PHONY: php_fix-coding-standard
## === OTHER ================================================ ##
##--- OTHER -------------------------------------------------------------------
php_linter: ## ... php_linter: ## ...
bin/parallel-lint --colors webapp/ --exclude webapp/vendor/ --exclude webapp/var/ bin/parallel-lint --colors webapp/ --exclude webapp/vendor/ --exclude webapp/var/
.PHONY: php_linter .PHONY: php_linter
...@@ -310,10 +312,11 @@ B8F640134AB1782E,AA36B9960B5B823D,C5095986493B4AA0,8101FB57DD8130F0,95DE904AB800 ...@@ -310,10 +312,11 @@ B8F640134AB1782E,AA36B9960B5B823D,C5095986493B4AA0,8101FB57DD8130F0,95DE904AB800
.PHONY: phive_install_auto-trust-of-predefined-gpg-keys .PHONY: phive_install_auto-trust-of-predefined-gpg-keys
# Default goal and help # Default goal and help
## === 🆘 HELP ================================================== ##
##--- 🆘 HELP -----------------------------------------------------------------
.DEFAULT_GOAL := help .DEFAULT_GOAL := help
help: ## Show this help. help: ## Show this help.
@echo "Makefile TAJINE" @echo "Makefile COMPTOIR-DU-LIBRE"
@echo "" @echo ""
@echo "Usage: make [target]" @echo "Usage: make [target]"
@echo "---------------------------" @echo "---------------------------"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment