Skip to content

Commit c62b151

Browse files
author
MarcoFalke
committed
Merge #14231: travis: Save cache even when build or test fail
d3ecc3d travis: Save cache on build error (Chun Kuan Lee) Pull request description: In current travis setup, the job will terminate immediately if an error occur. There is no chance to save the cache. This was accidentally introduced by #13863. This PR is to fix the issue and travis would save cache on error. test for build error: https://travis-ci.org/bitcoin/bitcoin/builds/429172128 Tree-SHA512: fb8beb97928e10932c695d1884948bf8972a6501042d5212111fba1f258160d813a4c6cc72e9da78f2acd9518382c21943347b820d8e15b5eb874e7707c928b2
2 parents ed12fd8 + d3ecc3d commit c62b151

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ env:
2626
- WINEDEBUG=fixme-all
2727
- DOCKER_PACKAGES="build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache"
2828
before_install:
29-
- set -o errexit; source .travis/test_03_before_install.sh
29+
- set -o errexit; if ! source .travis/test_03_before_install.sh; then set +o errexit; false; fi
3030
install:
31-
- set -o errexit; source .travis/test_04_install.sh
31+
- set -o errexit; if ! source .travis/test_04_install.sh; then set +o errexit; false; fi
3232
before_script:
33-
- set -o errexit; source .travis/test_05_before_script.sh
33+
- set -o errexit; if ! source .travis/test_05_before_script.sh; then set +o errexit; false; fi
3434
script:
35-
- if [ $SECONDS -gt 1200 ]; then set +o errexit; echo "Travis early exit to cache current state"; false; else set -o errexit; source .travis/test_06_script.sh; fi
35+
- if [ $SECONDS -gt 1200 ]; then set +o errexit; echo "Travis early exit to cache current state"; false; else set -o errexit; if ! source .travis/test_06_script.sh; then set +o errexit; false; fi; fi
3636
after_script:
3737
- echo $TRAVIS_COMMIT_RANGE
3838
- echo $TRAVIS_COMMIT_LOG

0 commit comments

Comments
 (0)