Run 'make check' only when bottling #5466
Unanswered
mahrud
asked this question in
Tap maintenance and brew development
Replies: 1 comment
-
You can guard the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to add
make check
to a few formulae on a self-maintained tap, but I also want the ability to skip the checks occasionally (or vice versa, only runmake check
occasionally).I thought an optional argument would be perfect for this purpose, but that doesn't seem to be supported anymore, or at least I can't find any reference to how to add one, so if this is still possible through a secret syntax let me know!
Otherwise, is there a way to run a command in the 'install' section of the formula only if brew is building a bottle, as opposed to building from source without bottling? This way GitHub builds will still run the checks, but if I ever want to build a new version from source I don't need to wait for the tests to pass (and more importantly, if a test fails the whole build isn't aborted).
Beta Was this translation helpful? Give feedback.
All reactions