fix travis build timeout swallowing error code

This commit is contained in:
Wolfgang Walther
2020-10-14 10:49:47 -05:00
committed by Steve Chavez
parent f5331d1a77
commit b21a0f6192
+1 -1
View File
@@ -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