cooperaj / phpci-process-plugin
This package is abandoned and no longer maintained.
No replacement package was suggested.
PHPCI plugin for handling processes that should run throughout testing
v1.1.0
2016-02-04 23:07 UTC
Requires
- php: >=5.3.3
- symfony/process: ^3.0
Requires (Dev)
- block8/phpci: 1.6.x
This package is auto-updated.
Last update: 2020-11-20 14:37:24 UTC
README
This plugin allows you to manage daemons and other processes that should run for the duration of your tests. Such as mailcatcher or beanstalk.
Install the Plugin
- Navigate to your PHPCI root directory and run
composer require cooperaj/phpci-process-plugin
- If you are using the PHPCI daemon, restart it
- Update your
phpci.yml
in the project you want to deploy with
PHPCI Config
setup: Cooperaj\PHPCI\Plugin\BackgroundProcesses: - "mailcatcher --ip 0.0.0.0 --foreground" - "someotherdaemon --always-run-in-foreground" - "SOME_ENVIRONMENT_VARIABLE=Some_value some_script with --parameter=value"
If you're using the PHPCI daemon to run your builds you'll also need to run the Stop plugin as a part of your complete step otherwise the background processes you've started will not stop.
complete: Cooperaj\PHPCI\Plugin\StopBackgroundProcesses: