Skip to content

Commit

Permalink
app to src dir
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Nov 10, 2023
1 parent 5ef0dca commit e9f5b59
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bare_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
coverage: none

- run: php bin/class-leak list --ansi
- run: php bin/class-leak check app bin --ansi
- run: php bin/class-leak check src bin --ansi
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 app bin vendor --config build/rector-downgrade-php-72.php --ansi
- run: rector-local/vendor/bin/rector process src 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 app bin 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 src 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 @@ -30,11 +30,11 @@ wget https://github.com/humbug/php-scoper/releases/download/0.18.3/php-scoper.ph
note "Running php-scoper"

# Work around possible PHP memory limits
php -d memory_limit=-1 php-scoper.phar add-prefix app bin vendor composer.json --config scoper.php --force --ansi --output-dir scoped-code
php -d memory_limit=-1 php-scoper.phar add-prefix src 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 app bin vendor composer.json
rm -r src bin vendor composer.json
mv scoped-code/* .

note "Dumping Composer Autoload"
Expand Down

0 comments on commit e9f5b59

Please sign in to comment.