@@ -16,7 +16,7 @@ This package implements the following commands:
16
16
Generate the files needed for a basic WP-CLI command.
17
17
18
18
~~~
19
- wp scaffold package <name> [--description=<description>] [--homepage=<homepage>] [--dir=<dir>] [--license=<license>] [--require_wp_cli=<version>] [--skip-tests] [--skip-readme] [--skip-github] [--skip-install] [--force]
19
+ wp scaffold package <name> [--description=<description>] [--homepage=<homepage>] [--dir=<dir>] [--license=<license>] [--require_wp_cli=<version>] [--require_wp_cli_tests=<version>] [-- skip-tests] [--skip-readme] [--skip-github] [--skip-install] [--force]
20
20
~~~
21
21
22
22
Default behavior is to create the following files:
@@ -52,7 +52,13 @@ WP-CLI `packages/local/` directory.
52
52
[--require_wp_cli=<version>]
53
53
Required WP-CLI version for the package.
54
54
---
55
- default: ^1.1.0
55
+ default: ^2.5
56
+ ---
57
+
58
+ [--require_wp_cli_tests=<version>]
59
+ Required WP-CLI testing framework version for the package.
60
+ ---
61
+ default: ^3.0.11
56
62
---
57
63
58
64
[--skip-tests]
@@ -140,6 +146,15 @@ machine. Make sure `~/.composer/vendor/bin` has also been added to your
140
146
` $PATH ` . Once you've done so, you can run the tests for a project by
141
147
calling ` behat ` .
142
148
149
+ For Travis CI, specially-named files in the package directory can be
150
+ used to modify the generated ` .travis.yml ` , where ` <tag> ` is one of
151
+ 'cache', 'env', 'matrix', 'before_install', 'install', 'before_script', 'script':
152
+ * ` travis-<tag>.yml ` - contents used for ` <tag>: ` (if present following ignored)
153
+ * ` travis-<tag>-append.yml ` - contents appended to generated ` <tag>: `
154
+
155
+ You can also append to the generated ` .travis.yml ` with the file:
156
+ * ` travis-append.yml ` - contents appended to generated ` .travis.yml `
157
+
143
158
** ENVIRONMENT**
144
159
145
160
The ` features/bootstrap/FeatureContext.php ` file expects the
@@ -270,7 +285,7 @@ files include:
270
285
271
286
## Installing
272
287
273
- Installing this package requires WP-CLI v1.3.0 or greater. Update to the latest stable release with ` wp cli update ` .
288
+ Installing this package requires WP-CLI v2.5 or greater. Update to the latest stable release with ` wp cli update ` .
274
289
275
290
Once you've done so, you can install this package with:
276
291
0 commit comments