comparison scripts/build.py @ 203:e6ddca1e5712

Huge refactoring to remove dependency on BDB XML. Report data is now stored in the Trac database (SQLite/PostgreSQL). Also: * Fix reporting of lines of code for modules that have partial coverage. * Get coverage results also in case of test failures. * Improve database upgrade procedure (will now give feedback). * Introduce report categories to allow the output of other tools (JUnit, Clover, etc) to be visualized by the same components in the server-side without modification.
author cmlenz
date Mon, 19 Sep 2005 15:22:14 +0000
parents 634be6cbb808
children 24e91cbae6e0
comparison
equal deleted inserted replaced
202:ae4b03619d9a 203:e6ddca1e5712
49 recipe = Recipe(xmlio.parse(recipe_file)) 49 recipe = Recipe(xmlio.parse(recipe_file))
50 for step in recipe: 50 for step in recipe:
51 if not steps_to_run or step.id in steps_to_run: 51 if not steps_to_run or step.id in steps_to_run:
52 print 52 print
53 print '-->', step.id 53 print '-->', step.id
54 for type, function, output in step.execute(recipe.ctxt): 54 for type, category, generator, output in step.execute(recipe.ctxt):
55 if type == Recipe.ERROR: 55 if type == Recipe.ERROR:
56 log.error('Failure in step "%s": %s', step.id, output) 56 log.error('Failure in step "%s": %s', step.id, output)
57 elif type == Recipe.REPORT and options.print_reports: 57 elif type == Recipe.REPORT and options.print_reports:
58 output.write(sys.stdout, newlines=True) 58 output.write(sys.stdout, newlines=True)
59 if step.id in steps_to_run: 59 if step.id in steps_to_run:
Copyright (C) 2012-2017 Edgewall Software