mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 20:00:50 +00:00
[Scoper] No need to re-generate preload.php on scoping (#592)
This commit is contained in:
parent
9d37638fce
commit
1f538c6871
1
.github/workflows/build_scoped_rector.yaml
vendored
1
.github/workflows/build_scoped_rector.yaml
vendored
|
@ -64,6 +64,7 @@ jobs:
|
||||||
cp -R build/target-repository/. rector-prefixed-downgraded
|
cp -R build/target-repository/. rector-prefixed-downgraded
|
||||||
cp -R templates rector-prefixed-downgraded/
|
cp -R templates rector-prefixed-downgraded/
|
||||||
cp CONTRIBUTING.md rector-prefixed-downgraded/
|
cp CONTRIBUTING.md rector-prefixed-downgraded/
|
||||||
|
cp preload.php rector-prefixed-downgraded/
|
||||||
|
|
||||||
# 6. clone remote repository, so we can push it
|
# 6. clone remote repository, so we can push it
|
||||||
-
|
-
|
||||||
|
|
|
@ -37,14 +37,12 @@ note "Running scoper to $RESULT_DIRECTORY"
|
||||||
wget https://github.com/humbug/php-scoper/releases/download/0.14.0/php-scoper.phar -N --no-verbose
|
wget https://github.com/humbug/php-scoper/releases/download/0.14.0/php-scoper.phar -N --no-verbose
|
||||||
|
|
||||||
# Work around possible PHP memory limits
|
# Work around possible PHP memory limits
|
||||||
php -d memory_limit=-1 php-scoper.phar add-prefix preload.php bin config src packages rules vendor composer.json --output-dir "../$RESULT_DIRECTORY" --config scoper.php --force --ansi --working-dir "$BUILD_DIRECTORY"
|
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"
|
# note "Dumping Composer Autoload"
|
||||||
composer dump-autoload --working-dir "$RESULT_DIRECTORY" --ansi --classmap-authoritative --no-dev
|
composer dump-autoload --working-dir "$RESULT_DIRECTORY" --ansi --classmap-authoritative --no-dev
|
||||||
|
|
||||||
php "$BUILD_DIRECTORY/build/build-preload.php" $RESULT_DIRECTORY
|
|
||||||
|
|
||||||
rm -rf "$BUILD_DIRECTORY"
|
rm -rf "$BUILD_DIRECTORY"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user