Skip to content

Conversation

@ken2812221
Copy link
Contributor

The current travis-ci job would fail only if the last command failed. It would be succeed if other commands than the last one fail.

This PR execute the script in another shell instance, so we should export those variables and bash functions. It would return 1 if the script fail no matter if it's the last command.

Sorry for ruin the travis ci system in #14231

Test: https://travis-ci.org/ken2812221/bitcoin/jobs/467086010

@fanquake fanquake added the Tests label Dec 12, 2018
@maflcko maflcko added this to the 0.18.0 milestone Dec 12, 2018
@maflcko
Copy link
Member

maflcko commented Dec 12, 2018

Fine with me, but maybe it is not worth the code complexity in the travis yaml to support saving the cache in case of a test (or compile) failure?

@laanwj
Copy link
Member

laanwj commented Dec 13, 2018

Fine with me, but maybe it is not worth the code complexity in the travis yaml to support saving the cache in case of a test (or compile) failure?

I think that's a good point.

Also I think not saving the cache in cache of failure makes sense, can you be certain what the state of things is when there's a failure?

@ken2812221
Copy link
Contributor Author

Ok. Let's revert #14231

maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Dec 13, 2018
… it fail

fc91c1f Revert "travis: Save cache on build error" (Chun Kuan Lee)

Pull request description:

  The current travis-ci job would fail only if the last command failed. It would be succeed if other commands than the last one fail.

  This PR execute the script in another shell instance, so we should export those variables and bash functions. It would return 1 if the script fail no matter if it's the last command.

  Sorry for ruin the travis ci system in bitcoin#14231

  Test: https://travis-ci.org/ken2812221/bitcoin/jobs/467086010

Tree-SHA512: 4d9d144fe4c7038b4eff6bf8496e821af603d81677142c0884ed52aea6ce3a50150669be4fdad72a5d372456a33a2452d75ec35e8a7ec2bc4bdfbeaeb93e9acb
@maflcko maflcko merged commit fc91c1f into bitcoin:master Dec 13, 2018
@ken2812221 ken2812221 deleted the travis-fix-save-cache-2 branch January 22, 2019 10:46
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Sep 11, 2021
… it fail

fc91c1f Revert "travis: Save cache on build error" (Chun Kuan Lee)

Pull request description:

  The current travis-ci job would fail only if the last command failed. It would be succeed if other commands than the last one fail.

  This PR execute the script in another shell instance, so we should export those variables and bash functions. It would return 1 if the script fail no matter if it's the last command.

  Sorry for ruin the travis ci system in bitcoin#14231

  Test: https://travis-ci.org/ken2812221/bitcoin/jobs/467086010

Tree-SHA512: 4d9d144fe4c7038b4eff6bf8496e821af603d81677142c0884ed52aea6ce3a50150669be4fdad72a5d372456a33a2452d75ec35e8a7ec2bc4bdfbeaeb93e9acb
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 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.

4 participants