-
Notifications
You must be signed in to change notification settings - Fork 38.6k
[travis] Exit early when check-doc.py fails #7455
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
Conversation
|
Concept ACK. Can we test this by making a dummy change and see if travis fails, and how it looks now? |
167e60a to
faeddd6
Compare
|
dummy change: https://travis-ci.org/bitcoin/bitcoin/builds/106296202 TBH, I don't like the |
|
@theuni any ideas here? We want to terminate the test prematurely if the doc check fails, to avoid wasting resources, is there a nicer way to do this then |
|
@laanwj You could "remember" the exit code and branch subsequent statements/lines but this is a somewhat larger diff, I guess. |
|
@laanwj The first commit should be uncontroversial and improve things considerably without making anything worse. Would you mind if I create a new pull for this commit? |
|
As this is a testing/build system related pull, I'd just like @theuni to take a look at it. If he's ok with it we'll just merge. |
|
@MarcoFalke I think it'd do what you wanted if you just bumped it up into before_script. Then you wouldn't have to worry about forcing an exit, as before_script errors the build on any non-zero return. |
|
other than that, ACK. |
02b332b to
fa5f193
Compare
|
Thanks for letting me know. This is indeed working: https://travis-ci.org/bitcoin/bitcoin/jobs/113383026 |
fa5f193 [travis] Exit early when check-doc.py fails (MarcoFalke)
fa5f193 [travis] Exit early when check-doc.py fails (MarcoFalke)
Discussed on IRC