Lines Matching +full:is +full:- +full:path +full:- +full:inside
7 # http://www.apache.org/licenses/LICENSE-2.0
10 # distributed under the License is distributed on an "AS IS" BASIS,
21 # pylint: disable=wrong-import-position,import-error
22 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
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
60 if not os.path.exists(self.workspace.repo_storage):
63 # Note: this assumes there is only one repo checked out here.
68 repo_path = os.path.join(self.workspace.repo_storage, listing[0])
69 if not os.path.isdir(repo_path):
70 raise RuntimeError('Repo is not a directory.')
92 """Returns the command for building the project that is run inside the
98 """Returns the command to build the project inside the project builder
105 |host_repo_path| and build the project inside the project builder
107 rm_path = os.path.join(image_repo_path, '*')
108 image_src_path = os.path.dirname(image_repo_path)
110 command = (f'cd / && rm -rf {rm_path} && cp -r {host_repo_path} '
111 f'{image_src_path} && cd - && {build_command}')
116 """Determines what kind of CI is being used and returns the object
120 # Non-OSS-Fuzz projects must bring their own source and their own build
121 # integration (which is relative to that source).
124 # Non-OSS-Fuzz projects must bring their own source and their own build
125 # integration (which is relative to that source).
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
172 """Class representing CI for an OSS-Fuzz project on Github Actions."""
177 logging.info('Building OSS-Fuzz project on Github Actions.')
193 image_repo_name = os.path.basename(image_repo_path)
205 def get_build_command(self, host_repo_path, image_repo_path): # pylint: disable=no-self-use
206 """Returns the command for building the project that is run inside the
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.')
241 def get_build_command(self, host_repo_path, image_repo_path): # pylint: disable=no-self-use
242 """Returns the command for building the project that is run inside the
250 """Builds the project builder image for an external (non-OSS-Fuzz) project.
252 dockerfile_path = os.path.join(build_integration_path, 'Dockerfile')
254 '-t', docker.EXTERNAL_PROJECT_IMAGE, '-f', dockerfile_path, project_src
260 """CI implementation for generic CI for external (non-OSS-Fuzz) projects."""
268 build_integration_abs_path = os.path.join(
278 image_repo_path = os.path.join('/src', self.config.project_repo_name)
283 def get_build_command(self, host_repo_path, image_repo_path): # pylint: disable=no-self-use
284 """Returns the command for building the project that is run inside the
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
309 build_integration_abs_path = os.path.join(
318 image_repo_path = os.path.join('/src', self.config.project_repo_name)
323 def get_build_command(self, host_repo_path, image_repo_path): # pylint: disable=no-self-use
324 """Returns the command for building the project that is run inside the