From 649c95eadc313e211b54f1abb7f9826f15a2ac36 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Mon, 13 Mar 2017 03:40:02 -0700 Subject: [PATCH] Make sure to get all PHP dependences set up properly --- tools/gce/linux_performance_worker_init.sh | 2 +- tools/run_tests/performance/run_worker_php.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/gce/linux_performance_worker_init.sh b/tools/gce/linux_performance_worker_init.sh index 04844506c9d..b952fd1b35c 100755 --- a/tools/gce/linux_performance_worker_init.sh +++ b/tools/gce/linux_performance_worker_init.sh @@ -130,7 +130,7 @@ gem install bundler # PHP dependencies -sudo apt-get install -y php5 php5-dev phpunit php-pear zlib1g-dev +sudo apt-get install -y php5 php5-dev phpunit php-pear unzip zlib1g-dev curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer diff --git a/tools/run_tests/performance/run_worker_php.sh b/tools/run_tests/performance/run_worker_php.sh index b4d1a1cccd1..ebedae8795d 100755 --- a/tools/run_tests/performance/run_worker_php.sh +++ b/tools/run_tests/performance/run_worker_php.sh @@ -31,7 +31,14 @@ source ~/.rvm/scripts/rvm set -ex -cd $(dirname $0)/../../.. +repo=$(dirname $0)/../../.. + +# First set up all dependences needed for PHP QPS test +cd $repo +cd src/php/tests/qps +curl -sS https://getcomposer.org/installer | php +php composer.phar install # The proxy worker for PHP is implemented in Ruby +cd $repo ruby src/ruby/qps/proxy-worker.rb $@