Skip to content

Commit

Permalink
[BUGFIX] Move cgl config in build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed May 30, 2024
1 parent bfa2f21 commit cd0336f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Build/Scripts/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ fi
case ${TEST_SUITE} in
cgl)
if [ "${CGLCHECK_DRY_RUN}" -eq 1 ]; then
COMMAND="php -dxdebug.mode=off .Build/bin/php-cs-fixer fix -v --dry-run --diff --config=.php-cs-fixer.dist.php --using-cache=no ."
COMMAND="php -dxdebug.mode=off .Build/bin/php-cs-fixer fix -v --dry-run --diff --config=Build/cgl/.php-cs-fixer.dist.php --using-cache=no ."
else
COMMAND="php -dxdebug.mode=off .Build/bin/php-cs-fixer fix -v --config=.php-cs-fixer.dist.php --using-cache=no ."
COMMAND="php -dxdebug.mode=off .Build/bin/php-cs-fixer fix -v --config=Build/cgl/.php-cs-fixer.dist.php --using-cache=no ."
fi
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name cgl-${SUFFIX} -e COMPOSER_CACHE_DIR=.Build/.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} /bin/sh -c "${COMMAND}"
SUITE_EXIT_CODE=$?
Expand Down
4 changes: 3 additions & 1 deletion .php-cs-fixer.dist.php → Build/cgl/.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
return (new Config())
->setFinder(
(new Finder())
->in(__DIR__)
->in(__DIR__ . '/../../')
->exclude(__DIR__ . '/../../.Build')
->exclude(__DIR__ . '/../../var')
)
->setRiskyAllowed(true)
->setRules([
Expand Down

0 comments on commit cd0336f

Please sign in to comment.