Lines Matching +full:base +full:- +full:repo
7 # http://www.apache.org/licenses/LICENSE-2.0
21 # pylint: disable=wrong-import-position,import-error
31 # pylint: disable=too-few-public-methods
44 'git', 'symbolic-ref', 'refs/remotes/origin/HEAD',
58 """Returns the source repo path, if it has been checked out. None is
63 # Note: this assumes there is only one repo checked out here.
66 raise RuntimeError('Invalid repo storage.')
70 raise RuntimeError('Repo is not a directory.')
80 """Returns the base to diff against with git to get the change under
86 base = self.get_diff_base()
88 logging.info('Diffing against %s.', base)
89 return repo_manager_obj.get_git_diff(base)
104 """Returns the command to replace the repo located at |image_repo_path| with
110 command = (f'cd / && rm -rf {rm_path} && cp -r {host_repo_path} '
111 f'{image_src_path} && cd - && {build_command}')
120 # Non-OSS-Fuzz projects must bring their own source and their own build
124 # Non-OSS-Fuzz projects must bring their own source and their own build
129 # Builds of OSS-Fuzz projects not hosted on Github must bring their own
130 # source since the checkout logic CIFuzz implements is github-specific.
131 # TODO(metzman): Consider moving Github-actions builds of OSS-Fuzz projects
149 'Using current repo state', pr_ref or commit_sha)
156 """Returns the base to diff against with git to get the change under
172 """Class representing CI for an OSS-Fuzz project on Github Actions."""
177 logging.info('Building OSS-Fuzz project on Github Actions.')
185 logging.error('Could not detect repo.')
195 # Checkout project's repo in the shared volume.
205 def get_build_command(self, host_repo_path, image_repo_path): # pylint: disable=no-self-use
213 """Class representing CI for an OSS-Fuzz project on a CI other than Github
217 """Builds the project builder image for an OSS-Fuzz project outside of
221 logging.info('Building OSS-Fuzz project.')
228 logging.error('Could not detect repo.')
241 def get_build_command(self, host_repo_path, image_repo_path): # pylint: disable=no-self-use
250 """Builds the project builder image for an external (non-OSS-Fuzz) project.
254 '-t', docker.EXTERNAL_PROJECT_IMAGE, '-f', dockerfile_path, project_src
260 """CI implementation for generic CI for external (non-OSS-Fuzz) projects."""
283 def get_build_command(self, host_repo_path, image_repo_path): # pylint: disable=no-self-use
290 """Class representing CI for a non-OSS-Fuzz project on Github Actions."""
293 """Builds the project builder image for a non-OSS-Fuzz project on GitHub
294 actions. Sets the repo manager. Does not checkout source code since external
323 def get_build_command(self, host_repo_path, image_repo_path): # pylint: disable=no-self-use