Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Feb 1, 2016

Discussed on IRC

@laanwj
Copy link
Member

laanwj commented Feb 1, 2016

Concept ACK.

Can we test this by making a dummy change and see if travis fails, and how it looks now?

@laanwj laanwj added the Tests label Feb 1, 2016
@maflcko maflcko force-pushed the Mf1601-travisCheckDoc branch 5 times, most recently from 167e60a to faeddd6 Compare February 1, 2016 19:58
@maflcko
Copy link
Member Author

maflcko commented Feb 1, 2016

dummy change: https://travis-ci.org/bitcoin/bitcoin/builds/106296202

TBH, I don't like the set -e workaround, as the travis build will not exit cleanly. It doesn't matter with the current .travis.yml but it may in the future and it is not considered best practice.

@laanwj
Copy link
Member

laanwj commented Feb 2, 2016

@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 set -e or exit?

@maflcko
Copy link
Member Author

maflcko commented Feb 2, 2016

@laanwj You could "remember" the exit code and branch subsequent statements/lines but this is a somewhat larger diff, I guess.

@maflcko
Copy link
Member Author

maflcko commented Feb 26, 2016

@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?

@laanwj
Copy link
Member

laanwj commented Mar 2, 2016

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.

@theuni
Copy link
Member

theuni commented Mar 3, 2016

@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.

@theuni
Copy link
Member

theuni commented Mar 3, 2016

other than that, ACK.

@maflcko maflcko force-pushed the Mf1601-travisCheckDoc branch 2 times, most recently from 02b332b to fa5f193 Compare March 3, 2016 14:05
@maflcko
Copy link
Member Author

maflcko commented Mar 3, 2016

@laanwj laanwj merged commit fa5f193 into bitcoin:master Mar 3, 2016
laanwj added a commit that referenced this pull request Mar 3, 2016
fa5f193 [travis] Exit early when check-doc.py fails (MarcoFalke)
@maflcko maflcko deleted the Mf1601-travisCheckDoc branch March 3, 2016 15:28
codablock pushed a commit to codablock/dash that referenced this pull request Dec 11, 2017
fa5f193 [travis] Exit early when check-doc.py fails (MarcoFalke)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants