aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/package_targets.py
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanley.cheung@gmail.com>2016-02-24 07:38:39 -0800
committerGravatar Stanley Cheung <stanley.cheung@gmail.com>2016-02-24 07:38:39 -0800
commit91edc13bf8a83dd024f9ce4e0ad2246202545a38 (patch)
treed93f9c8f7faf8167f0db13a0d3358276ceded8bd /tools/run_tests/package_targets.py
parentc95bfefa5ecd38fdbb8d3a14d425cf5cd7337fe6 (diff)
parentbf74d69ed601796fca2d6e737519cc1c2de7c60c (diff)
Merge pull request #5249 from stanley-cheung/php-build-template
PHP: simplify installation
Diffstat (limited to 'tools/run_tests/package_targets.py')
-rw-r--r--tools/run_tests/package_targets.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/tools/run_tests/package_targets.py b/tools/run_tests/package_targets.py
index 4ca8279f1b..87bc4865ce 100644
--- a/tools/run_tests/package_targets.py
+++ b/tools/run_tests/package_targets.py
@@ -139,9 +139,27 @@ class PythonPackage:
'tools/run_tests/build_package_python.sh')
+class PHPPackage:
+ """Copy PHP PECL package artifact"""
+
+ def __init__(self):
+ self.name = 'php_package'
+ self.labels = ['package', 'php', 'linux']
+
+ def pre_build_jobspecs(self):
+ return []
+
+ def build_jobspec(self):
+ return create_docker_jobspec(
+ self.name,
+ 'tools/dockerfile/grpc_artifact_linux_x64',
+ 'tools/run_tests/build_package_php.sh')
+
+
def targets():
"""Gets list of supported targets"""
return [CSharpPackage(),
NodePackage(),
RubyPackage(),
- PythonPackage()]
+ PythonPackage(),
+ PHPPackage()]