[TESTS][TOOLS] Clarify make target names

v3
Hugo Sales 1 year ago
parent 334de7c739
commit 5829e77edd
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0

@ -36,28 +36,31 @@ database-force-nuke:
database-force-schema-update:
docker exec -it $(call translate-container-name,$(strip $(DIR))_php_1) sh -c "/var/www/social/bin/console doctrine:schema:update --dump-sql --force"
tooling-docker: .PHONY
tooling-docker-up: .PHONY
@sh -c 'if [ ! docker container inspect $(call translate-container-name,tooling_php_1) > /dev/null 2>&1 ]; then cd docker/tooling && docker-compose up -d --build > /dev/null 2>&1; fi'
stop-tooling: .PHONY
tooling-docker-down: .PHONY
cd docker/tooling && docker-compose down
tooling-php-shell: tooling-docker
test: tooling-docker-up
@docker exec $(call translate-container-name,tooling_php_1) /var/tooling/coverage.sh $(call args,'')
test-database-force-nuke: tooling-docker-up
docker exec -it $(call translate-container-name,tooling_php_1) sh -c 'cd /var/www/social; bin/console doctrine:database:drop --force'
tooling-php-shell: tooling-docker-up
docker exec -it $(call translate-container-name,tooling_php_1) sh
test-accesibility: tooling-docker
test-accesibility: tooling-docker-up
cd docker/tooling && docker-compose run pa11y /accessibility.sh
test: tooling-docker
docker exec $(call translate-container-name,tooling_php_1) /var/tooling/coverage.sh $(call args,'')
cs-fixer: tooling-docker
cs-fixer: tooling-docker-up
@bin/php-cs-fixer $${CS_FIXER_FILE}
doc-check: tooling-docker
doc-check: tooling-docker-up
bin/php-doc-check
phpstan: tooling-docker
phpstan: tooling-docker-up
bin/phpstan
remove-var:

Loading…
Cancel
Save