Skip to content

phwoolcon/ci-pecl-cacher

Repository files navigation

phwoolcon/ci-pecl-cacher

Latest Version on Packagist Build Status Total Downloads Software License

PECL installation script with cache for Travis CI

Install

Via Composer

$ composer require phwoolcon/ci-pecl-cacher

Usage

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.

Change log

Please see CHANGELOG for more information on what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The Apache License, Version 2.0. Please see License File for more information.

About

PECL installation script with cache for Travis CI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages