Skip to content

Commit

Permalink
move up
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Sep 27, 2023
1 parent 6a54578 commit 1e683dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/build-rector-scoped.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ note "Starts"
note "Running scoper to $RESULT_DIRECTORY"
wget https://github.com/humbug/php-scoper/releases/download/0.17.7/php-scoper.phar -N --no-verbose

# avoid phpstan duplicates
php "$RESULT_DIRECTORY/bin/add-phpstan-self-replace.php"
composer remove phpstan/phpstan -W --update-no-dev --working-dir "$RESULT_DIRECTORY"

# Work around possible PHP memory limits
php -d memory_limit=-1 php-scoper.phar add-prefix bin config src packages rules vendor composer.json --output-dir "../$RESULT_DIRECTORY" --config scoper.php --force --ansi --working-dir "$BUILD_DIRECTORY";

note "Dumping Composer Autoload"

# avoid duplicates
php "$RESULT_DIRECTORY/bin/add-phpstan-self-replace.php"
composer remove phpstan/phpstan -W --update-no-dev --working-dir "$RESULT_DIRECTORY"

composer dump-autoload --working-dir "$RESULT_DIRECTORY" --ansi --classmap-authoritative --no-dev

rm -rf "$BUILD_DIRECTORY"
Expand Down

0 comments on commit 1e683dc

Please sign in to comment.