Skip to content

Commit

Permalink
Respect --nobuild option
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjohnson committed Jan 3, 2025
1 parent 19a29b1 commit 7953043
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions scripts/build_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,19 @@ def test_footer(self, exit_code):
print("")

def print_summary(self):
if self.run_clean:
action = "CLEAN"
else:
action = "BUILD"
self.print_blu(f"==========================================")
self.print_blu(f" {action} SUMMARY:")
self.print_blu(f"==========================================")
if self.build_success:
self.print_grn(f"[PASSED]: " + ", ".join(self.build_success))
if self.build_failure:
self.print_red(f"[FAILED]: " + ", ".join(self.build_failure))
print("")
if self.run_build:
if self.run_clean:
action = "CLEAN"
else:
action = "BUILD"
self.print_blu(f"==========================================")
self.print_blu(f" {action} SUMMARY:")
self.print_blu(f"==========================================")
if self.build_success:
self.print_grn(f"[PASSED]: " + ", ".join(self.build_success))
if self.build_failure:
self.print_red(f"[FAILED]: " + ", ".join(self.build_failure))
print("")
if self.run_test:
self.print_cyn(f"==========================================")
self.print_cyn(f" TEST SUMMARY:")
Expand All @@ -162,6 +163,8 @@ def print_summary(self):
self.print_release_info()

def build_callback(self, project_name, callback):
if not self.run_build:
return
result = 0
self.build_header(project_name)
result = callback(self.args)
Expand All @@ -181,6 +184,8 @@ def test_callback(self, project_name, callback):
return result

def build_script(self, project_name, script_path, args=[]):
if not self.run_build:
return
if self.is_windows:
command = ["cmd", "/c", str(script_path)]
else:
Expand All @@ -205,6 +210,8 @@ def build_script(self, project_name, script_path, args=[]):
return result

def build_cmake(self, project_name, project_dir):
if not self.run_build:
return
project_dir = Path(project_dir)

self.build_header(project_name)
Expand Down

0 comments on commit 7953043

Please sign in to comment.