Skip to content

Remove tests and others from distribution #199

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

Merged
merged 3 commits into from
Oct 31, 2020
Merged

Remove tests and others from distribution #199

merged 3 commits into from
Oct 31, 2020

Conversation

viezel
Copy link
Contributor

@viezel viezel commented Oct 28, 2020

No description provided.

We don't want to ship test in distribution builds
@sabberworm
Copy link
Collaborator

Can you elaborate on the benefits? Smaller file size?
We discussed removing the lock file from the repo already and concluded it should stay in.

@viezel
Copy link
Contributor Author

viezel commented Oct 29, 2020

Yes, it’s a best practice to only ship production needed files. Php is used in many different environments where size matters like serverless.

More here https://php.watch/articles/composer-gitattributes

@sabberworm
Copy link
Collaborator

sabberworm commented Oct 29, 2020

I didn’t know that composer respects git attributes so wohoo for that. But this will also affect ZIP file downloads from GitHub, won’t it? I’m not sure people expect test files to be missing when downloading a ZIP file of the repository.

@viezel
Copy link
Contributor Author

viezel commented Oct 29, 2020

Only a release zip. If people download the code using the standard clone to zip feature. They will get it all.

@sabberworm sabberworm merged commit 8304866 into MyIntervals:master Oct 31, 2020
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