Skip to content

Commit

Permalink
[build] note about local run
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Sep 27, 2023
1 parent 0c64b6d commit b7ef56e
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions full_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,5 @@ cp -R templates rector-prefixed-downgraded/
cp CONTRIBUTING.md rector-prefixed-downgraded/
cp preload.php rector-prefixed-downgraded/

# rector-build check
cd rector-prefixed-downgraded

# trigger phpstan/phpstan dependnecy download
composer update

if test -z ${PHP72_BIN_PATH+y}; then
bin/rector list --ansi;
else
echo "verify scoped rector with specify PHP72_BIN_PATH env";
$PHP72_BIN_PATH bin/rector list --ansi;
fi

cd ..

rm -rf rector-prefixed-downgraded

# back to get dev dependencies
composer install --ansi

# remove php-parallel-lint from global dependencies
composer global remove php-parallel-lint/php-parallel-lint
# the bin/rector cannot work, as depends on external phpstan/phpstan dependency
# this package cannot be installed here, as it would override scoped autoload

0 comments on commit b7ef56e

Please sign in to comment.