aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/artifact_targets.py
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2016-02-13 00:03:02 -0800
committerGravatar Stanley Cheung <stanleycheung@google.com>2016-02-23 22:26:44 -0800
commit5adb71fb9add555ac161ebf745e5ac104fe3f847 (patch)
tree4c6748761c1fa6200756cca631d65bdfcb87fe7c /tools/run_tests/artifact_targets.py
parentc95bfefa5ecd38fdbb8d3a14d425cf5cd7337fe6 (diff)
php: simplify installation
Diffstat (limited to 'tools/run_tests/artifact_targets.py')
-rw-r--r--tools/run_tests/artifact_targets.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/tools/run_tests/artifact_targets.py b/tools/run_tests/artifact_targets.py
index f84d35580b..15a1e2a681 100644
--- a/tools/run_tests/artifact_targets.py
+++ b/tools/run_tests/artifact_targets.py
@@ -241,6 +241,23 @@ class NodeExtArtifact:
['tools/run_tests/build_artifact_node.sh',
self.gyp_arch])
+class PHPExtArtifact:
+ """Builds PHP native extension"""
+
+ def __init__(self, platform, arch):
+ self.name = 'php_ext_{0}_{1}'.format(platform, arch)
+ self.platform = platform
+ self.arch = arch
+ self.labels = ['artifact', 'php', platform, arch]
+
+ def pre_build_jobspecs(self):
+ return []
+
+ def build_jobspec(self):
+ return create_docker_jobspec(
+ self.name,
+ 'tools/dockerfile/grpc_artifact_linux_{}'.format(self.arch),
+ 'tools/run_tests/build_artifact_php.sh')
class ProtocArtifact:
"""Builds protoc and protoc-plugin artifacts"""
@@ -299,4 +316,6 @@ def targets():
PythonArtifact('windows', 'x64'),
RubyArtifact('linux', 'x86'),
RubyArtifact('linux', 'x64'),
- RubyArtifact('macos', 'x64')])
+ RubyArtifact('macos', 'x64'),
+ PHPExtArtifact('linux', 'x64'),
+ PHPExtArtifact('macos', 'x64')])