From 09ec0ba7092b702a23d9b922529acc3d45c77661 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 2 Sep 2016 12:09:19 -0700 Subject: [PATCH] stop build at 25 minutes (well before travis fails the job at 50) to ensure at least partial ccache results are uploaded --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 68505741b..a2567a14a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -92,7 +92,14 @@ script: - export SCONSFLAGS='--debug=time' - configure BENCHMARK=${BENCH} - cat config.log - - scripts/travis-command-wrapper.py -s "date;ps aux | grep ${CXX}" -i 60 make + # we limit the `make` to 25 min + # to ensure that slow builds still upload their + # ccache results and therefore should be faster + # for the next build + - DURATION=1500 + - start=$(date +%s) + - deadline=$(( $start + $DURATION * 60 - 10 * 60 )) + - scripts/travis-command-wrapper.py -s "date;ps aux | grep ${CXX}" -i 60 --deadline=$deadline make - make test - enabled ${COVERAGE} coverage - enabled ${BENCH} make bench