diff options
author | Chun Kuan Lee <ken2812221@gmail.com> | 2018-09-15 18:00:40 +0800 |
---|---|---|
committer | Chun Kuan Lee <ken2812221@gmail.com> | 2018-10-28 06:48:35 +0800 |
commit | d3ecc3d695f33d90d6c4e61f3d7ceb57f44eb200 (patch) | |
tree | 3b027433e2a989e69f125dc1d77c01fc960500f8 /.travis.yml | |
parent | c70f9c0cfc9c4a5559d3f91f29b9541f7f737753 (diff) |
travis: Save cache on build error
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index c1d264e25f..3bb892648f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,13 +28,13 @@ env: - WINEDEBUG=fixme-all - DOCKER_PACKAGES="build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache" 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: - - 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: - - 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: - - 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: - echo $TRAVIS_COMMIT_RANGE - echo $TRAVIS_COMMIT_LOG |