stop build at 25 minutes (well before travis fails the job at 50) to ensure at least partial ccache results are uploaded

This commit is contained in:
Dane Springmeyer 2016-09-02 12:09:19 -07:00
parent 687af49f47
commit 09ec0ba709

View file

@ -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