Update PHP artifact test

pull/23540/head
Stanley Cheung 4 years ago
parent 6d12fa7162
commit cf9be63c49
  1. 2
      tools/run_tests/artifacts/artifact_targets.py
  2. 5
      tools/run_tests/artifacts/build_artifact_php.sh

@ -286,7 +286,7 @@ class PHPArtifact:
def build_jobspec(self): def build_jobspec(self):
return create_docker_jobspec( return create_docker_jobspec(
self.name, self.name,
'tools/dockerfile/grpc_artifact_centos6_{}'.format(self.arch), 'tools/dockerfile/test/php73_zts_stretch_{}'.format(self.arch),
'tools/run_tests/artifacts/build_artifact_php.sh') 'tools/run_tests/artifacts/build_artifact_php.sh')

@ -19,6 +19,11 @@ cd "$(dirname "$0")/../../.."
mkdir -p "${ARTIFACTS_OUT}" mkdir -p "${ARTIFACTS_OUT}"
# build the PHP extension archive (this just zips all the files up)
pear package pear package
# test installing the PHP extension via pecl install
find . -name "grpc-*.tgz" | cut -b3- | xargs pecl install
# verified that the grpc extension is installed
php -d extension=grpc.so --re grpc | head -1
cp -r grpc-*.tgz "${ARTIFACTS_OUT}"/ cp -r grpc-*.tgz "${ARTIFACTS_OUT}"/

Loading…
Cancel
Save