2016-07-19 11:12:28 +02:00
|
|
|
Plugin Composer
|
2017-01-04 13:22:20 +01:00
|
|
|
===============
|
2016-07-19 11:12:28 +02:00
|
|
|
|
2017-07-18 15:54:24 +02:00
|
|
|
Allows you to run Composer within your build, to install dependencies prior to testing. Best run as a "setup" stage
|
|
|
|
plugin.
|
2016-07-17 16:20:35 +02:00
|
|
|
|
2016-07-19 11:12:28 +02:00
|
|
|
Configuration
|
2017-01-04 13:22:20 +01:00
|
|
|
-------------
|
2016-07-19 11:12:28 +02:00
|
|
|
|
2016-07-17 16:20:35 +02:00
|
|
|
### Options
|
2016-07-19 11:12:28 +02:00
|
|
|
|
2016-07-17 16:20:35 +02:00
|
|
|
* **directory** [optional, string] - Directory within which you want Composer to run (default: build root)
|
|
|
|
* **action** [optional, string, update|install] - Action you wish Composer to run (default: 'install')
|
2017-07-18 15:54:24 +02:00
|
|
|
* **prefer_dist** [optional, bool, true|false] - whether Composer should run with the `--prefer-dist` flag
|
|
|
|
(default: false)
|
|
|
|
* **prefer_source** [optional, bool, true|false] - whether Composer should run with the `--prefer-source` flag
|
|
|
|
(default: false)
|
2016-07-19 11:12:28 +02:00
|
|
|
* **no_dev** [optional, bool, true|false] - whether Composer should run with the `--no-dev` flag (default: false)
|
2017-07-18 15:54:24 +02:00
|
|
|
* **ignore_platform_reqs** [optional, bool, true|false] - whether Composer should run with the `--ignore-platform-reqs`
|
|
|
|
flag (default: false)
|
2016-07-19 11:12:28 +02:00
|
|
|
|
|
|
|
### Examples
|
2016-07-17 16:20:35 +02:00
|
|
|
|
|
|
|
```yml
|
|
|
|
setup:
|
|
|
|
composer:
|
|
|
|
directory: "my/composer/dir"
|
|
|
|
action: "update"
|
|
|
|
prefer_dist: true
|
|
|
|
```
|
|
|
|
|
2016-07-19 11:12:28 +02:00
|
|
|
Warning
|
2017-01-04 13:22:20 +01:00
|
|
|
-------
|
2016-07-17 16:20:35 +02:00
|
|
|
|
2017-07-18 15:54:24 +02:00
|
|
|
If you are using a Composer private repository like Satis, with HTTP authentication, you must check your username and
|
|
|
|
password inside the ```auth.json``` file. PHP Censor uses the ```--no-interaction``` flag, so it will not warn if you
|
|
|
|
must provide that info.
|
2016-07-17 16:20:35 +02:00
|
|
|
|
|
|
|
For more info, please check the Composer documentation.
|
|
|
|
|
|
|
|
https://getcomposer.org/doc/04-schema.md#config
|