Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make build.sh more accurately match what the github workflow does #491

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

shish
Copy link
Collaborator

@shish shish commented Dec 2, 2024

we need to do composer install for both the generator and the generated files, because phpcbf needs to be run from the output directory, using the output-directory config files -- this PR makes it so that running ./.devcontainer/build.sh should generate byte-identical output to the regen-bot

we need to do `composer install` for both the generator and the generated files, because phpcbf needs to be run from the output directory using the output-directory config files -- this PR makes it so that running `./.devcontainer/build.sh` should generate byte-identical output to the regen-bot
@@ -3,4 +3,6 @@ ARG DEBIAN_FRONTEND=noninteractive
ARG XDEBUG_MODE=coverage
RUN apt update -y && apt install -y git composer php-cli php-dom php-curl php-xdebug vim
WORKDIR /app
CMD cd /app/generator/doc && ./update.sh && cd /app/generator && composer install && php ./safe.php generate && composer cs-fix
CMD cd /app/generator/doc && ./update.sh && \
cd /app && composer install && \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something we should de-duplicate using a composer script ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is installing the things necessary for composer to run, then running it - I'm not sure it could be much more de-duplicated ^^;

@staabm staabm merged commit 822cdae into thecodingmachine:master Dec 2, 2024
11 of 12 checks passed
@staabm
Copy link
Collaborator

staabm commented Dec 2, 2024

Thanks

@shish shish deleted the build branch December 2, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants