From d4932bbf37d9fa0fc66c58bbd4137987e208b599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Tim=C3=B3n?= Date: Sat, 27 Jul 2019 21:42:59 +0200 Subject: [PATCH] ERROR: Travis: Run until the job 50min limit failure --- .travis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 09289d5..d599076 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,16 @@ language: bash services: docker -build: - - docker build -t lnintegration . +before_script: + - docker build -t lnintegration . > build.log 2>&1 + - while sleep 5m; do echo "=====[ $SECONDS seconds, lnintegration still building... ]====="; done & + - time docker run --rm -v $PWD/build:/build lnintegration >> build.log 2>&1 + # Killing background sleep loop + - kill %1 + +after_failure: + # dump the last 2000 lines of our build, and hope the error is in that! + - tail --lines=2000 build.log after_success: # Log that the build worked, because we all need some good news