Build the dependent repo and time how long it took
(self, repos, repo_dict)
| 669 | run_cmake_command(cmake_cmd) |
| 670 | |
| 671 | def Build(self, repos, repo_dict): |
| 672 | """Build the dependent repo and time how long it took""" |
| 673 | if VERBOSE: |
| 674 | print('Building {n} in {d}'.format(n=self.name, d=self.repo_dir)) |
| 675 | print('Build dir = {b}'.format(b=self.build_dir)) |
| 676 | print('Install dir = {i}\n'.format(i=self.install_dir)) |
| 677 | |
| 678 | start = time.time() |
| 679 | |
| 680 | # Run any prebuild commands |
| 681 | self.PreBuild() |
| 682 | |
| 683 | if self.build_step == 'custom': |
| 684 | self.CustomBuild(repo_dict) |
| 685 | return |
| 686 | |
| 687 | # Build and execute CMake command for creating build files |
| 688 | self.CMakeConfig(repos) |
| 689 | |
| 690 | # Build and execute CMake command for the build |
| 691 | self.CMakeBuild() |
| 692 | |
| 693 | total_time = time.time() - start |
| 694 | |
| 695 | print(f"Installed {self.name} ({self.commit}) in {total_time:.3f} seconds", flush=True) |
| 696 | |
| 697 | def AcquireReleaseArtifacts(self): |
| 698 | """Process acquiring the release artifacts and time how long it took""" |
no test coverage detected