Skip to content

Commit 837217c

Browse files
Vincent PELISSETVincent PELISSET
authored andcommitted
priority_path, binary__path and binary_name
1 parent 7bbe512 commit 837217c

42 files changed

Lines changed: 432 additions & 372 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,23 @@
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to
55
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
### Added
7+
8+
- **"priority_path"**, new accepted value : **"binary_path"**, "local" is now accepted too
9+
- global :
10+
- **binary_path** to manualy set a directory to find plugins binary (interpolated directory %%)
611

12+
- per plugin :
13+
- **"binary_path"** : set the path to find the finary, overwrite the global **"binary_path"** option if set
14+
- **"binary_name"** : change the default name of binary, array accepted
15+
- **"priority_path"** : can be defined per plugin
16+
717
### Changed
8-
- All plugins who have an executable can overide the executable with "executable" config (gulp & grunt use new parameter)
9-
- All plugins who use global ignore can now set a local ignore, cumulative settings
10-
- All plugins who use "path" or "directory" now use "directory", and this can be set like ignore for all plugins who use it
18+
19+
- Per plugin:
20+
- **ignore** : always define path from root without ./ ,it will be merge with the global **ignore** directory list
21+
- All plugins who previously used "path" or "directory" option now use a common **"directory"**
22+
it's the working directory of the plugin
1123

1224

1325
## [0.24.0](https://github.com/php-censor/php-censor/tree/0.24.0) (2018-11-04)

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,17 @@ The project config should look something like this:
183183

184184
```yml
185185
setup:
186+
priority_path: binary_path
187+
binary_path: %BUILD_PATH%src/vendor/bin
186188
composer:
187189
action: "install"
188190
directory: "."
189191
test:
190192
php_unit:
191193
config: "phpunit.xml"
192-
executable: "/lastBinaryVersion/phpunit"
194+
binary_name: "phpunit-1.2"
193195
php_mess_detector:
196+
binary_path: /usr/local/bin
194197
allow_failures: true
195198
php_code_sniffer:
196199
standard: "PSR2"

docs/en/plugins/atoum.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Configuration
1111
- **args** [string, optional] - Allows you to pass command line arguments to Atoum.
1212
- **config** [string, optional] - Path to an Atoum configuration file.
1313
- **directory** [string, optional] - This option lets you specify the tests directory to run.
14-
- **executable** [string, optional] - Allows you to provide a path to the Atom binary
14+
- **binary_name** [string, optional] - Allows you to provide a name of the binary
15+
- **binary_path** [string, optional] - Allows you to provide a path to the binary
1516
vendor/bin, or a system-provided Atom binary).
1617

1718
### Examples

docs/en/plugins/behat.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Configuration
88

99
### Options
1010

11-
- **executable** [string, optional] - Allows you to provide a path to the Behat binary (defaults to PHP Censor root,
12-
vendor/bin, or a system-provided Behat binary).
11+
- **binary_name** [string, optional] - Allows you to provide a name of the binary
12+
- **binary_path** [string, optional] - Allows you to provide a path to the binary
1313
- **features** [string, optional] - Provide a list of Behat features to run.
1414

1515
### Examples

docs/en/plugins/codeception.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ Configuration
99
### Options
1010

1111
* **config** - Required - Can be either a single string pointing to a Codeception configuration file, or an array of
12-
configuration file paths. By default this is called `codeception.yml` and will be in the root of your project.
12+
configuration file paths and name. By default this is called `codeception.yml` and will be in the root of your project.
1313

1414
* **args** - Optional - The string of arguments to be passed to the run command.**Important**, due to the assumption
1515
made on line 132 regarding the value of `--xml` being the next argument which will not be correct if the user provides
1616
arguments using this config param, you must specify `report.xml` before any user input arguments to satisfy the report
1717
processing on line 146.
1818
* **path** - Deprecated - use output_path
1919
* **output_path** - Optional - The path from the root of your project to the root of the codeception `_output` directory
20-
* **executable** [string, optional] - Allows you to provide a path to the codeception binary
20+
* **binary_name** [string, optional] - Allows you to provide a name of the binary
21+
* **binary_path** [string, optional] - Allows you to provide a path to the binary
22+
2123
#### Default values
2224

2325
- config

docs/en/plugins/composer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Configuration
1818
* **no_dev** [optional, bool, true|false] - whether Composer should run with the `--no-dev` flag (default: false)
1919
* **ignore_platform_reqs** [optional, bool, true|false] - whether Composer should run with the `--ignore-platform-reqs`
2020
flag (default: false)
21-
* **executable** [string, optional] - Allows you to provide a path to the codeception binary
21+
* **binary_name** [string, optional] - Allows you to provide a name of the binary
22+
* **binary_path** [string, optional] - Allows you to provide a path to the binary
2223

2324
### Examples
2425

docs/en/plugins/grunt.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ Configuration
88

99
### Options
1010

11-
- **directory** [string, optional] - The directory in which to run Grunt (defaults to build root.)
12-
- **grunt** (deprecated) : replaced by **executable**, same functionality
13-
- **executable** [string, optional] - Allows you to provide a path to Grunt (defaults to PHP Censor root, vendor/bin, or a
14-
system-provided Grunt).
15-
- **gruntfile** [string, optional] - Gruntfile to run (defaults to `Gruntfile.js`).
16-
- **task** [string, optional] - The Grunt task to run.
11+
* **directory** [string, optional] - The directory in which to run Grunt (defaults to build root.)
12+
* **grunt** (deprecated) : replaced by **executable**, same functionality
13+
* **binary_name** [string, optional] - Allows you to provide a name of the binary
14+
* **binary_path** [string, optional] - Allows you to provide a path to the binary
15+
* **gruntfile** [string, optional] - Gruntfile to run (defaults to `Gruntfile.js`).
16+
* **task** [string, optional] - The Grunt task to run.
1717

1818
### Example
1919

docs/en/plugins/gulp.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ Configuration
88

99
### Options
1010

11-
- **directory** [string, optional] - The directory in which to run Grunt (defaults to build root.)
12-
- **gulp** (deprecated) : replaced by **executable**, same functionality
13-
- **executable** [string, optional] - Allows you to provide a path to Grunt (defaults to PHP Censor root, vendor/bin, or a
14-
system-provided Grunt).
15-
- **gulpfile** [string, optional] - GulpFile to run (defaults to `gulpfile.js`).
16-
- **task** [string, optional] - The Gulp task to run.
11+
* **directory** [string, optional] - The directory in which to run Grunt (defaults to build root.)
12+
* **gulp** (deprecated) : replaced by **executable**, same functionality
13+
* **binary_name** [string, optional] - Allows you to provide a name of the binary
14+
* **binary_path** [string, optional] - Allows you to provide a path to the binary
15+
* **gulpfile** [string, optional] - GulpFile to run (defaults to `gulpfile.js`).
16+
* **task** [string, optional] - The Gulp task to run.
1717

1818
### Example
1919

docs/en/plugins/pdepend.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ Configuration
99
### Options
1010

1111
* **directory** [string, optional] - Directory in which to run PDepend (default: `%BUILD_PATH%`).
12-
* **executable** [string, optional] - Allows you to provide a path to pdepend executable
12+
* **binary_name** [string, optional] - Allows you to provide a name of the binary
13+
* **binary_path** [string, optional] - Allows you to provide a path to the binary
14+
1315

1416
### Examples
1517

docs/en/plugins/phing.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Configuration
1313
* **targets** - Which build targets you want to run.
1414
* **properties** - Any custom properties you wish to pass to phing.
1515
* **property_file** - A file containing properties you wish to pass to phing.
16-
* **executable** [string, optional] - Allows you to provide a path to phing executable
16+
* **binary_name** [string, optional] - Allows you to provide a name of the binary
17+
* **binary_path** [string, optional] - Allows you to provide a path to the binary
18+
1719
### Examples
1820

1921
```yml

0 commit comments

Comments
 (0)