From b21a0f619279d6657dd6d12b0c742b66f43bef02 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 14 Oct 2020 16:49:20 +0200 Subject: [PATCH] fix travis build timeout swallowing error code --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 656c81990..e3a9039aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,7 +46,7 @@ script: ## we compile for 30 minutes tops(`gtimeout 1800`) and quit compiling with no error. ## Since we CACHE the compile results we can continue compiling from where we left off ## on the next commit. -- gtimeout 1800 stack build --no-terminal --only-snapshot --install-ghc || true +- gtimeout 1800 stack build --no-terminal --only-snapshot --install-ghc || (($?==124)) - | if test ! "$TRAVIS_TAG" then