PECL installation script with cache for Travis CI
Via Composer
$ composer require phwoolcon/ci-pecl-cacher
Edit .travis.yml
vim .travis.yml
To enable cache support:
cache:
directories:
- $HOME/pecl_cache
To install PECL extension:
before_install:
- composer require phwoolcon/ci-pecl-cacher -n
# Cache till new version
- vendor/bin/ci-pecl-install swoole
# Cache and skip version check
- vendor/bin/ci-pecl-install swoole skip-update
# Cache a package that has a different .so name from the package name
- vendor/bin/ci-pecl-install libsodium sodium
# Cache a specific version of a package (.so name required)
- vendor/bin/ci-pecl-install grpc-1.9.0 grpc
See result.
Please see CHANGELOG for more information on what has changed recently.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The Apache License, Version 2.0. Please see License File for more information.