- Timestamp:
- 2013-07-25 19:10:19 (9 years ago)
- Location:
- 2013/30
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/30/build_and_write_report.py
r4506 r4687 31 31 def main(): 32 32 try: 33 add_program("build_games.py --write-results ")33 add_program("build_games.py --write-results --no-pong") 34 34 # write report expects to find a build result directory, which 35 35 # is created by the build script. So, lets give the build a head start. -
2013/30/build_and_write_report_continuously.py
r4506 r4687 31 31 def main(): 32 32 try: 33 add_program("build_games.py --write-results ")33 add_program("build_games.py --write-results --no-pong") 34 34 # write report expects to find a build result directory, which 35 35 # is created by the build script. So, lets give the build a head start. -
2013/30/build_games.py
r4685 r4687 17 17 import re 18 18 19 no_pong = False 19 20 should_write_results = True 20 21 … … 55 56 match = re.search("Last Changed Date: (\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d) (\\d\\d):(\\d\\d)", svn_info_output) 56 57 if not match: 57 raise Exception("Last Changed Date not found from svn info output!") 58 #raise Exception("Last Changed Date not found from svn info output!") 59 return datetime(year=2000, month=1, day=1, hour=0, minute=0) 58 60 year = int(match.group(1)) 59 61 month = int(match.group(2)) … … 70 72 if should_write_results and exists(join(path, ".svn")): 71 73 call("svn update " + path, shell=True) 72 73 74 75 76 77 78 79 74 outputs = Popen("svn info " + path, stdout=PIPE).communicate() 75 time = parse_last_changed_date(outputs[0]) 76 try: 77 build_games_in_personal_dir(path, time) 78 except Exception, e: 79 print 80 print "NOT SUCCESSFUL FOR USER ", d, ": ", e 81 users_that_did_not_build.append(d) 80 82 81 83 … … 121 123 author = basename(personal_dir) 122 124 125 if re.search("consoleapplication", project_name, flags=re.IGNORECASE): 126 continue 127 128 if no_pong and re.search("^pong", project_name, flags=re.IGNORECASE): 129 continue 130 123 131 success = build(projects[0]) 124 132 … … 158 166 global should_write_results 159 167 should_write_results = True 168 elif arg == "--no-pong": 169 global no_pong 170 no_pong = True 160 171 else: 161 172 raise Exception("Unknown argument: " + arg) -
2013/30/write_report.py
r4685 r4687 106 106 result = lines[2].strip() 107 107 time_of_update = lines[3].strip() 108 if hide_pong_games and re.search(" pong", name, flags=re.IGNORECASE):108 if hide_pong_games and re.search("^pong", name, flags=re.IGNORECASE): 109 109 continue 110 110
Note: See TracChangeset
for help on using the changeset viewer.