Changeset 2622 for 2011


Ignore:
Timestamp:
2011-08-08 13:16:48 (12 years ago)
Author:
tekrjant
Message:

build_and_write_report_continuously.py

Location:
2011/31
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • 2011/31/build_games.py

    r2621 r2622  
     1# -*- coding: latin-1 -*- 
     2""" 
     3Builds all the .csproj-projects in all subdirectories, copies 
     4compiled games to directory games and optionally writes the 
     5results of the build. 
     6""" 
     7 
    18from __future__ import with_statement 
    29import sys 
  • 2011/31/write_report.py

    r2620 r2622  
    33Writes a html report of the build results. build_games.py 
    44should be run first. 
    5  
    6 The report is written continuously. Hit Ctrl-c to stop. 
    75""" 
    86from __future__ import with_statement 
     
    128126 
    129127 
     128def parse_arguments(): 
     129    for arg in sys.argv[1:]: 
     130        if arg == "--hide-pong": 
     131            global hide_pong_games 
     132            hide_pong_games = True 
     133        else: 
     134            raise Exception("Unknown argument: " + arg) 
     135 
     136 
    130137def main(): 
    131     if "--hide-pong" in sys.argv: 
    132         global hide_pong_games 
    133         hide_pong_games = True 
    134  
    135138    try: 
    136         while True: 
    137             check_requirements() 
    138             initialize_report() 
    139             write_results() 
    140             write_report() 
    141             print "report written" 
    142             time.sleep(15) 
     139        parse_arguments() 
     140        check_requirements() 
     141        initialize_report() 
     142        write_results() 
     143        write_report() 
     144        print "report written" 
    143145    except KeyboardInterrupt: 
    144146        print "cancelled" 
Note: See TracChangeset for help on using the changeset viewer.