[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,11 +1,5 @@
#!/bin/sh
translate_container_name () {
if docker container inspect "$1" > /dev/null 2>&1; then
echo "$1"
else
echo "$1" | sed 'y/_/-/'
fi
}
. bin/translate_container_name.sh
docker exec "$(translate_container_name tooling_php_1)" /var/tooling/phpstan.sh "$@"