Skip to content

Commit 47cd9ce

Browse files
authored
Merge pull request #340 from ernilambar/fix-plugin-ci-options
2 parents 7757434 + 2bc10b3 commit 47cd9ce

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

features/scaffold-plugin-tests.feature

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,3 +309,16 @@ Feature: Scaffold plugin unit tests
309309
"""
310310
require dirname( dirname( __FILE__ ) ) . '/bar.php';
311311
"""
312+
313+
Scenario: Accept bitbucket as valid CI in plugin scaffold
314+
Given a WP install
315+
When I run `wp plugin path`
316+
Then save STDOUT as {PLUGIN_DIR}
317+
318+
When I run `wp scaffold plugin hello-world --ci=bitbucket`
319+
Then STDOUT should not be empty
320+
And the {PLUGIN_DIR}/hello-world/.editorconfig file should exist
321+
And the {PLUGIN_DIR}/hello-world/hello-world.php file should exist
322+
And the {PLUGIN_DIR}/hello-world/readme.txt file should exist
323+
And the {PLUGIN_DIR}/hello-world/bitbucket-pipelines.yml file should exist
324+
And the {PLUGIN_DIR}/hello-world/tests directory should exist

src/Scaffold_Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ private function get_output_path( $assoc_args, $subdir ) {
608608
* options:
609609
* - circle
610610
* - gitlab
611+
* - bitbucket
611612
* - github
612613
* ---
613614
*

0 commit comments

Comments
 (0)