travis: Save cache on build error

pull/643/head
Chun Kuan Lee 6 years ago
parent c70f9c0cfc
commit d3ecc3d695

@ -28,13 +28,13 @@ env:
- WINEDEBUG=fixme-all - WINEDEBUG=fixme-all
- DOCKER_PACKAGES="build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache" - DOCKER_PACKAGES="build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache"
before_install: before_install:
- set -o errexit; source .travis/test_03_before_install.sh - set -o errexit; if ! source .travis/test_03_before_install.sh; then set +o errexit; false; fi
install: install:
- set -o errexit; source .travis/test_04_install.sh - set -o errexit; if ! source .travis/test_04_install.sh; then set +o errexit; false; fi
before_script: before_script:
- set -o errexit; source .travis/test_05_before_script.sh - set -o errexit; if ! source .travis/test_05_before_script.sh; then set +o errexit; false; fi
script: script:
- 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 - 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
after_script: after_script:
- echo $TRAVIS_COMMIT_RANGE - echo $TRAVIS_COMMIT_RANGE
- echo $TRAVIS_COMMIT_LOG - echo $TRAVIS_COMMIT_LOG

Loading…
Cancel
Save