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

Exit code for CI #68

Closed
kasium opened this issue Nov 2, 2021 · 3 comments
Closed

Exit code for CI #68

kasium opened this issue Nov 2, 2021 · 3 comments

Comments

@kasium
Copy link

kasium commented Nov 2, 2021

Hey,

can you please provide guidance how to integrate pyroma in a CI? pyroma doesn't fail when not a full score it achieved (non zero exit code). Maybe a CLI parameter --fail-under would help?

@CAM-Gerlach
Copy link
Collaborator

Hey, you should be able to use the -n MIN or --min MIN flag to indicate the minimum rating on which Pyroma will return 0, e.g. -n 10 or --min 10 to require a perfect score (without that, it still returns non-zero by default if the score is zero, for serious issues). Its listed under --help and worked great for me in testing.

@kasium
Copy link
Author

kasium commented Nov 3, 2021

Thanks :-)

@kasium kasium closed this as completed Nov 3, 2021
@CAM-Gerlach
Copy link
Collaborator

You're welcome ^_^

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

No branches or pull requests

2 participants