[TOOLS] Make PHP-CS-Fixer and PHP-Doc-check run inside the tooling container

This commit is contained in:
2021-12-25 14:26:59 +00:00
parent af3d278fde
commit 6ada5e60d2
7 changed files with 41 additions and 17 deletions

View File

@@ -1 +0,0 @@
../vendor/bin/php-cs-fixer

10
bin/php-cs-fixer Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
. bin/translate_container_name.sh
if [ "${#}" -eq 1 ]; then
docker exec "$(translate_container_name tooling_php_1)" /var/www/social/vendor/bin/php-cs-fixer -q -n --config=".php-cs-fixer.php" fix "${1}"
else
echo running without specific files?
docker exec "$(translate_container_name tooling_php_1)" /var/www/social/vendor/bin/php-cs-fixer -n --config=".php-cs-fixer.php" fix
fi