15 """Definition of targets to build distribution packages."""
20 sys.path.insert(0, os.path.abspath(
'..'))
30 """Creates jobspec for a task running under docker."""
31 environ = environ.copy()
34 for k, v
in list(environ.items()):
35 docker_args += [
'-e',
'%s=%s' % (k, v)]
37 'DOCKERFILE_DIR': dockerfile_dir,
38 'DOCKER_RUN_SCRIPT':
'tools/run_tests/dockerize/docker_run.sh',
39 'DOCKER_RUN_SCRIPT_COMMAND': shell_command,
40 'OUTPUT_DIR':
'artifacts'
42 jobspec = jobset.JobSpec(
43 cmdline=[
'tools/run_tests/dockerize/build_and_run_docker.sh'] +
46 shortname=
'build_package.%s' % (name),
47 timeout_seconds=30 * 60,
48 flake_retries=flake_retries,
49 timeout_retries=timeout_retries)
61 """Creates jobspec."""
62 jobspec = jobset.JobSpec(cmdline=cmdline,
65 shortname=
'build_package.%s' % (name),
66 timeout_seconds=10 * 60,
67 flake_retries=flake_retries,
68 timeout_retries=timeout_retries,
75 """Builds C# packages."""
89 'GRPC_CSHARP_BUILD_SINGLE_PLATFORM_NUGET':
90 os.getenv(
'GRPC_CSHARP_BUILD_SINGLE_PLATFORM_NUGET',
'')
93 build_script =
'src/csharp/build_nuget.sh'
98 'tools/dockerfile/test/csharp_debian11_x64',
102 repo_root = os.path.join(os.path.dirname(os.path.abspath(__file__)),
104 environ[
'EXTERNAL_GIT_ROOT'] = repo_root
113 """Collects ruby gems created in the artifact phase"""
117 self.
labels = [
'package',
'ruby',
'linux']
125 self.
name,
'tools/dockerfile/grpc_artifact_centos6_x64',
126 'tools/run_tests/artifacts/build_package_ruby.sh')
130 """Collects python eggs and wheels created in the artifact phase"""
134 self.
labels = [
'package',
'python',
'linux']
146 'tools/dockerfile/grpc_artifact_python_manylinux2014_x64',
147 'tools/run_tests/artifacts/build_package_python.sh',
148 environ={
'PYTHON':
'/opt/python/cp39-cp39/bin/python'})
152 """Copy PHP PECL package artifact"""
156 self.
labels = [
'package',
'php',
'linux']
164 self.
name,
'tools/dockerfile/grpc_artifact_centos6_x64',
165 'tools/run_tests/artifacts/build_package_php.sh')
169 """Gets list of supported targets"""