Hello everyone,
I am just setting up our project's bitbucket-pipelines.yml file. We have a PHP web application that uses the gRPC extension.
My current default build steps are:
image: php:7.3-cli
definitions:
steps:
- step: &build
name: Build
caches:
- composer
script:
- apt-get update && apt-get install -y ssh unzip autoconf libz-dev git
- pecl install grpc
- docker-php-ext-enable grpc
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- step: &run_tests
name: Run Tests
script:
- vendor/bin/phpunit --testdox protected/tests
pipelines:
default:
- step: *build
- step: *run_tests
The problem is, pecl install grpc takes over 7 minutes to compile and install.
I was reading the article on Caching dependencies, but I'm not sure how to cache grpc in this case, so I don't have to wait over 7 minutes each time this builds.
Any suggestions on how this is achieved?
Thank you!