Skip to content

Commit

Permalink
update dis
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 17, 2023
1 parent f282cc4 commit ab122fb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/downgraded_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- run: composer require rector/rector --working-dir rector-local --ansi

# downgrade to PHP 7.2
- run: rector-local/vendor/bin/rector process bin src packages config vendor --config build/rector-downgrade-php-72.php --ansi
- run: rector-local/vendor/bin/rector process app bin vendor --config build/rector-downgrade-php-72.php --ansi

# clear the dev files
- run: rm -rf tests ecs.php phpstan.neon phpunit.xml .gitignore .editorconfig
Expand Down
2 changes: 1 addition & 1 deletion build/build-scoped.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ wget https://github.com/humbug/php-scoper/releases/download/0.17.5/php-scoper.ph
mkdir "$RESULT_DIRECTORY" -p

# Work around possible PHP memory limits
php -d memory_limit=-1 php-scoper.phar add-prefix bin config src packages stubs 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 app bin vendor composer.json --output-dir "../$RESULT_DIRECTORY" --config scoper.php --force --ansi --working-dir "$BUILD_DIRECTORY"

note "Show prefixed files in '$RESULT_DIRECTORY'"
ls -l $RESULT_DIRECTORY
Expand Down
4 changes: 2 additions & 2 deletions prefix-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ wget https://github.com/humbug/php-scoper/releases/download/0.17.5/php-scoper.ph
note "Running php-scoper"

# Work around possible PHP memory limits
php -d memory_limit=-1 php-scoper.phar add-prefix bin config src packages vendor composer.json --config scoper.php --force --ansi --output-dir scoped-code
php -d memory_limit=-1 php-scoper.phar add-prefix app bin vendor composer.json --config scoper.php --force --ansi --output-dir scoped-code

# the output code is in "/scoped-code", lets move it up
# the local directories have to be empty to move easily
rm -r bin config src vendor composer.json packages stubs
rm -r app bin vendor composer.json
mv scoped-code/* .

note "Dumping Composer Autoload"
Expand Down
1 change: 0 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

$rectorConfig->paths([
__DIR__ . '/app',
__DIR__ . '/config',
__DIR__ . '/tests',
]);

Expand Down

0 comments on commit ab122fb

Please sign in to comment.