Merge pull request #20819 from stanley-cheung/php-composer-is-flaky

PHP: composer install could be flaky
pull/20811/head
Stanley Cheung 5 years ago committed by GitHub
commit 0856e267ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      tools/dockerfile/interoptest/grpc_interop_php/build_interop.sh
  2. 11
      tools/dockerfile/interoptest/grpc_interop_php7/build_interop.sh

@ -36,6 +36,13 @@ make -j4 install_c plugins
# Install protobuf (need access to protoc)
(cd third_party/protobuf && make -j4 install)
(cd src/php && php -d extension=ext/grpc/modules/grpc.so /usr/local/bin/composer install)
cd src/php
(cd src/php && ./bin/generate_proto_php.sh)
DONE=0
for ((i = 0; i < 5; i++)); do
php -d extension=ext/grpc/modules/grpc.so /usr/local/bin/composer install && DONE=1
[[ "$DONE" == 1 ]] && break
done
[[ "$DONE" != 1 ]] && echo "Failed to do composer install" && exit 1
./bin/generate_proto_php.sh

@ -36,6 +36,13 @@ make -j4 install_c plugins
# Install protobuf (need access to protoc)
(cd third_party/protobuf && make -j4 install)
(cd src/php && php -d extension=ext/grpc/modules/grpc.so /usr/local/bin/composer install)
cd src/php
(cd src/php && ./bin/generate_proto_php.sh)
DONE=0
for ((i = 0; i < 5; i++)); do
php -d extension=ext/grpc/modules/grpc.so /usr/local/bin/composer install && DONE=1
[[ "$DONE" == 1 ]] && break
done
[[ "$DONE" != 1 ]] && echo "Failed to do composer install" && exit 1
./bin/generate_proto_php.sh

Loading…
Cancel
Save