report on failure/success count during the job

this allows somebody to kill the build in the middle, if there were any
failures
This commit is contained in:
Martin A. Brown 2016-04-02 10:54:35 -07:00
parent 44f5afb714
commit d4237eec58
1 changed files with 4 additions and 2 deletions

View File

@ -273,8 +273,10 @@ def docbuild(config, docs, **kwargs):
for x, source in enumerate(docs, 1):
working = source.working
runner = source.doctype(source=source, output=working, config=config)
logger.info("%s (%d of %d) initiating build",
source.stem, x, len(docs))
status = 'progress, %d failures, %d successes'
status = status % (result.count(False), result.count(True),)
logger.info("%s (%d of %d) initiating build [%s]",
source.stem, x, len(docs), status)
result.append(runner.generate(**kwargs))
if all(result):
buildsuccess = True