Mercurial > bitten > bitten-test
comparison scripts/build.py @ 109:5bf22bb87915
Transmit build log and generated data back to the build master in XML format. Closes #23.
author | cmlenz |
---|---|
date | Wed, 03 Aug 2005 11:54:34 +0000 |
parents | f1baf05a49dd |
children | 3ed8f568f60a |
comparison
equal
deleted
inserted
replaced
108:2a720491d903 | 109:5bf22bb87915 |
---|---|
41 | 41 |
42 log = logging.getLogger('bitten') | 42 log = logging.getLogger('bitten') |
43 log.setLevel(options.loglevel) | 43 log.setLevel(options.loglevel) |
44 handler = logging.StreamHandler() | 44 handler = logging.StreamHandler() |
45 handler.setLevel(options.loglevel) | 45 handler.setLevel(options.loglevel) |
46 formatter = logging.Formatter('[%(levelname)-8s] %(message)s') | 46 formatter = logging.Formatter('%(message)s') |
47 handler.setFormatter(formatter) | 47 handler.setFormatter(formatter) |
48 log.addHandler(handler) | 48 log.addHandler(handler) |
49 | 49 |
50 steps_to_run = dict([(step, False) for step in args]) | 50 steps_to_run = dict([(step, False) for step in args]) |
51 recipe = Recipe() | 51 recipe = Recipe() |
52 for step in recipe: | 52 for step in recipe: |
53 if not steps_to_run or step.id in steps_to_run: | 53 if not steps_to_run or step.id in steps_to_run: |
54 print | |
54 print '-->', step.description or step.id | 55 print '-->', step.description or step.id |
55 step.execute(recipe.ctxt) | 56 for type, function, output in step.execute(recipe.ctxt): |
56 print | 57 pass |
57 if step.id in steps_to_run: | 58 if step.id in steps_to_run: |
58 steps_to_run[step.id] = True | 59 steps_to_run[step.id] = True |
59 | 60 |
60 if __name__ == '__main__': | 61 if __name__ == '__main__': |
61 try: | 62 try: |