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

Provide a phar version #126

Open
tomtomsen opened this issue Mar 5, 2020 · 2 comments
Open

Provide a phar version #126

tomtomsen opened this issue Mar 5, 2020 · 2 comments

Comments

@tomtomsen
Copy link

In my ci/cd pipeline i have a step which checks if .editorconfig definitions are met.
currently this runs as a docker command.

most other tools (phpunit, php-cs-fixer) are run as .phar, it would be great if editorconfig-checker.php is also available as phar.

@mstruebing
Copy link
Member

Hey @tomtomsen, thanks for your issue. 👍
Could you explain what needs to be done to provide editorconfig-checker as a .phar?
I'm not so much into the PHP-world anymore, but still want to maintain this project.

@tomtomsen
Copy link
Author

Hey @mstruebing, to be honest, i'm also not an expert.

but i managed to make a working version here: tomtomsen/editorconfig-checker.php-phar
it uses humbug/box

to make it work, i had to change the Utilities::getBasePath() method to work with the sys_get_temp_dir (096ab9441eb191e66bcb6cf0bf21ac1ec665a8df)
otherwise the path would point into the phar itself.

i haven't tried it to sign it.
i haven't tried to automate it.

but i can have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants