Skip to content

Commit

Permalink
restore downgrade configs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed May 27, 2022
1 parent e61411e commit e690cd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build/downgrade-rector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ export IFS=";"
for directory in $directories; do
echo "[NOTE] Downgrading '$directory' directory\n"

# if printf '%s' "$directory" | grep -Eq '^(vendor/(symfony|symplify)|rules/Naming|utils).*'; then
# echo "downgrading with no parallel...\n"
# CONFIG_PATH_DOWNGRADE="build/config/config-downgrade.php"
# else
# echo "downgrading with parallel...\n"
if printf '%s' "$directory" | grep -Eq '^(vendor/(symfony|symplify)|rules/Naming|utils).*'; then
echo "downgrading with no parallel...\n"
CONFIG_PATH_DOWNGRADE="build/config/config-downgrade.php"
else
echo "downgrading with parallel...\n"
CONFIG_PATH_DOWNGRADE="build/config/config-downgrade-parallel.php"
# fi
fi

# --working-dir is needed, so "SKIP" parameter is applied in absolute path of nested directory
php -d memory_limit=-1 bin/rector process $directory --config $CONFIG_PATH_DOWNGRADE --working-dir $BUILD_DIRECTORY --ansi
Expand Down

0 comments on commit e690cd0

Please sign in to comment.