@@ -172,42 +172,29 @@ Feature: Scaffold plugin unit tests
172172 And the {PLUGIN_DIR}/bitbucket-pipelines.yml file should contain:
173173 """
174174 - step:
175- image: php:5.6
176- name: "PHP 5.6 "
175+ image: php:7.4
176+ name: "PHP 7.4 "
177177 script:
178178 # Install Dependencies
179- - docker-php-ext-install mysqli
180- - apt-get update && apt-get install -y subversion --no-install-recommends
179+ - apt-get update && apt-get install -y subversion git zip libzip-dev --no-install-recommends
181180 """
182181 And the {PLUGIN_DIR}/bitbucket-pipelines.yml file should contain:
183182 """
184183 - step:
185- image: php:7 .0
186- name: "PHP 7 .0"
184+ image: php:8 .0
185+ name: "PHP 8 .0"
187186 script:
188187 # Install Dependencies
189- - docker-php-ext-install mysqli
190- - apt-get update && apt-get install -y subversion --no-install-recommends
188+ - apt-get update && apt-get install -y subversion git zip libzip-dev --no-install-recommends
191189 """
192190 And the {PLUGIN_DIR}/bitbucket-pipelines.yml file should contain:
193191 """
194192 - step:
195- image: php:7.1
196- name: "PHP 7.1 "
193+ image: php:8.2
194+ name: "PHP 8.2 "
197195 script:
198196 # Install Dependencies
199- - docker-php-ext-install mysqli
200- - apt-get update && apt-get install -y subversion --no-install-recommends
201- """
202- And the {PLUGIN_DIR}/bitbucket-pipelines.yml file should contain:
203- """
204- - step:
205- image: php:7.2
206- name: "PHP 7.2"
207- script:
208- # Install Dependencies
209- - docker-php-ext-install mysqli
210- - apt-get update && apt-get install -y subversion --no-install-recommends
197+ - apt-get update && apt-get install -y subversion git zip libzip-dev --no-install-recommends
211198 """
212199 And the {PLUGIN_DIR}/bitbucket-pipelines.yml file should contain:
213200 """
@@ -309,3 +296,16 @@ Feature: Scaffold plugin unit tests
309296 """
310297 require dirname( dirname( __FILE__ ) ) . '/bar.php';
311298 """
299+
300+ Scenario : Accept bitbucket as valid CI in plugin scaffold
301+ Given a WP install
302+ When I run `wp plugin path`
303+ Then save STDOUT as {PLUGIN_DIR}
304+
305+ When I run `wp scaffold plugin hello-world --ci=bitbucket`
306+ Then STDOUT should not be empty
307+ And the {PLUGIN_DIR}/hello-world/.editorconfig file should exist
308+ And the {PLUGIN_DIR}/hello-world/hello-world.php file should exist
309+ And the {PLUGIN_DIR}/hello-world/readme.txt file should exist
310+ And the {PLUGIN_DIR}/hello-world/bitbucket-pipelines.yml file should exist
311+ And the {PLUGIN_DIR}/hello-world/tests directory should exist
0 commit comments