[travis] Exit early when check-doc.py fails#7455
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