try to get travis-command-wrapper deadline working
This commit is contained in:
parent
acd90042fb
commit
57331a40ce
2 changed files with 4 additions and 4 deletions
|
@ -96,10 +96,8 @@ script:
|
||||||
# to ensure that slow builds still upload their
|
# to ensure that slow builds still upload their
|
||||||
# ccache results and therefore should be faster
|
# ccache results and therefore should be faster
|
||||||
# for the next build
|
# for the next build
|
||||||
- DURATION=1500
|
- DURATION=500
|
||||||
- start=$(date +%s)
|
- scripts/travis-command-wrapper.py -s "date;ps aux | grep clang" -i 60 --deadline=$(( $(date +%s) + ${DURATION} )) make
|
||||||
- deadline=$(( $start + $DURATION * 60 - 10 * 60 ))
|
|
||||||
- scripts/travis-command-wrapper.py -s "date;ps aux | grep clang" -i 60 --deadline=$deadline make
|
|
||||||
- make test
|
- make test
|
||||||
- enabled ${COVERAGE} coverage
|
- enabled ${COVERAGE} coverage
|
||||||
- enabled ${BENCH} make bench
|
- enabled ${BENCH} make bench
|
||||||
|
|
|
@ -52,6 +52,8 @@ def check_deadline(now):
|
||||||
if options.deadline > 0 and options.deadline < now:
|
if options.deadline > 0 and options.deadline < now:
|
||||||
print "\n\n*** travis-cmd-wrapper: deadline reached, shutting down ***\n\n"
|
print "\n\n*** travis-cmd-wrapper: deadline reached, shutting down ***\n\n"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
print "deadline not reached: %s > %s" % (options.deadline,now)
|
||||||
|
|
||||||
# Set up status alarm. When we have a deadline, we need to check more often
|
# Set up status alarm. When we have a deadline, we need to check more often
|
||||||
# and/or sooner. Sending a SIGALRM manually will also trigger a status report
|
# and/or sooner. Sending a SIGALRM manually will also trigger a status report
|
||||||
|
|
Loading…
Reference in a new issue