Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
Wait for the process to be dead before doing anything
  • Loading branch information
Vincent-P committed Aug 30, 2019
1 parent 5240d6b commit f0ace88
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,23 @@ steps:
if not os.path.exists(tp_path) and not needs_restart:
fail(f"The titlepack file is not here. ({tp_path})")
return needs_restart
return p, needs_restart
for filename in [f for f in glob.glob(logs, recursive=True)]:
os.remove(filename)
should_restart = build_tp()
p, should_restart = build_tp()
p.kill()
while p.poll() is None:
pass
if should_restart:
build_tp()
p, _ = build_tp()
p.kill()
while p.poll() is None:
pass
if os.path.exists(tp_path):
print("The titlepack was built correctly.")
Expand Down

0 comments on commit f0ace88

Please sign in to comment.