Skip to content

Commit e226f7d

Browse files
authored
Fix failing tests (#88)
Travis CI support in `wp scaffold plugin` was removed in wp-cli/scaffold-command#325, so all these `.travis.yml` files no longer exist.
1 parent 73d568d commit e226f7d

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

features/dist-archive.feature

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Feature: Generate a distribution archive of a project
77
When I run `wp scaffold plugin hello-world`
88
Then the wp-content/plugins/hello-world directory should exist
99
And the wp-content/plugins/hello-world/hello-world.php file should exist
10-
And the wp-content/plugins/hello-world/.travis.yml file should exist
10+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
1111
And the wp-content/plugins/hello-world/bin directory should exist
1212

1313
When I run `wp dist-archive wp-content/plugins/hello-world`
@@ -24,7 +24,7 @@ Feature: Generate a distribution archive of a project
2424
When I run `wp plugin install wp-content/plugins/hello-world.0.1.0.zip`
2525
Then the wp-content/plugins/hello-world directory should exist
2626
And the wp-content/plugins/hello-world/hello-world.php file should exist
27-
And the wp-content/plugins/hello-world/.travis.yml file should not exist
27+
And the wp-content/plugins/hello-world/.circleci/config.yml file should not exist
2828
And the wp-content/plugins/hello-world/bin directory should not exist
2929

3030
Scenario: Generates a tarball archive with a flag
@@ -33,7 +33,7 @@ Feature: Generate a distribution archive of a project
3333
When I run `wp scaffold plugin hello-world`
3434
Then the wp-content/plugins/hello-world directory should exist
3535
And the wp-content/plugins/hello-world/hello-world.php file should exist
36-
And the wp-content/plugins/hello-world/.travis.yml file should exist
36+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
3737
And the wp-content/plugins/hello-world/bin directory should exist
3838

3939
When I run `wp dist-archive wp-content/plugins/hello-world --format=targz`
@@ -50,7 +50,7 @@ Feature: Generate a distribution archive of a project
5050
When I try `cd wp-content/plugins/ && tar -zxvf hello-world.0.1.0.tar.gz`
5151
Then the wp-content/plugins/hello-world directory should exist
5252
And the wp-content/plugins/hello-world/hello-world.php file should exist
53-
And the wp-content/plugins/hello-world/.travis.yml file should not exist
53+
And the wp-content/plugins/hello-world/.circleci/config.yml file should not exist
5454
And the wp-content/plugins/hello-world/bin directory should not exist
5555

5656
Scenario: Generate a ZIP archive with a custom name
@@ -59,7 +59,7 @@ Feature: Generate a distribution archive of a project
5959
When I run `wp scaffold plugin hello-world`
6060
Then the wp-content/plugins/hello-world directory should exist
6161
And the wp-content/plugins/hello-world/hello-world.php file should exist
62-
And the wp-content/plugins/hello-world/.travis.yml file should exist
62+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
6363
And the wp-content/plugins/hello-world/bin directory should exist
6464

6565
When I run `wp dist-archive wp-content/plugins/hello-world hello-world.zip`
@@ -76,7 +76,7 @@ Feature: Generate a distribution archive of a project
7676
When I run `wp scaffold plugin hello-world`
7777
Then the wp-content/plugins/hello-world directory should exist
7878
And the wp-content/plugins/hello-world/hello-world.php file should exist
79-
And the wp-content/plugins/hello-world/.travis.yml file should exist
79+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
8080
And the wp-content/plugins/hello-world/bin directory should exist
8181

8282
When I run `wp dist-archive wp-content/plugins/hello-world wp-content`
@@ -93,7 +93,7 @@ Feature: Generate a distribution archive of a project
9393
When I run `wp scaffold plugin hello-world`
9494
Then the wp-content/plugins/hello-world directory should exist
9595
And the wp-content/plugins/hello-world/hello-world.php file should exist
96-
And the wp-content/plugins/hello-world/.travis.yml file should exist
96+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
9797
And the wp-content/plugins/hello-world/bin directory should exist
9898

9999
When I run `mkdir subdir`
@@ -113,7 +113,7 @@ Feature: Generate a distribution archive of a project
113113
When I run `wp scaffold plugin hello-world`
114114
Then the wp-content/plugins/hello-world directory should exist
115115
And the wp-content/plugins/hello-world/hello-world.php file should exist
116-
And the wp-content/plugins/hello-world/.travis.yml file should exist
116+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
117117
And the wp-content/plugins/hello-world/bin directory should exist
118118

119119
When I run `wp dist-archive wp-content/plugins/hello-world {RUN_DIR}/wp-content/`
@@ -168,7 +168,7 @@ Feature: Generate a distribution archive of a project
168168
When I run `wp scaffold plugin hello-world`
169169
Then the wp-content/plugins/hello-world directory should exist
170170
And the wp-content/plugins/hello-world/hello-world.php file should exist
171-
And the wp-content/plugins/hello-world/.travis.yml file should exist
171+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
172172
And the wp-content/plugins/hello-world/bin directory should exist
173173

174174
When I try `wp dist-archive wp-content/plugins/hello-world {RUN_DIR}/some/nested/folder/hello-world.zip`
@@ -191,7 +191,7 @@ Feature: Generate a distribution archive of a project
191191
When I run `wp scaffold plugin hello-world`
192192
Then the wp-content/plugins/hello-world directory should exist
193193
And the wp-content/plugins/hello-world/hello-world.php file should exist
194-
And the wp-content/plugins/hello-world/.travis.yml file should exist
194+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
195195
And the wp-content/plugins/hello-world/bin directory should exist
196196

197197
When I run `wp dist-archive . {RUN_DIR}/hello-world.zip` from 'wp-content/plugins/hello-world'
@@ -208,7 +208,7 @@ Feature: Generate a distribution archive of a project
208208
When I run `wp scaffold plugin hello-world`
209209
Then the wp-content/plugins/hello-world directory should exist
210210
And the wp-content/plugins/hello-world/hello-world.php file should exist
211-
And the wp-content/plugins/hello-world/.travis.yml file should exist
211+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
212212
And the wp-content/plugins/hello-world/bin directory should exist
213213

214214
When I run `wp dist-archive . hello-world.zip` from 'wp-content/plugins/hello-world'
@@ -225,7 +225,7 @@ Feature: Generate a distribution archive of a project
225225
When I run `wp scaffold plugin hello-world`
226226
Then the wp-content/plugins/hello-world directory should exist
227227
And the wp-content/plugins/hello-world/hello-world.php file should exist
228-
And the wp-content/plugins/hello-world/.travis.yml file should exist
228+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
229229
And the wp-content/plugins/hello-world/bin directory should exist
230230

231231
When I run `wp dist-archive . ./hello-world.zip` from 'wp-content/plugins/hello-world'
@@ -242,7 +242,7 @@ Feature: Generate a distribution archive of a project
242242
When I run `wp scaffold plugin hello-world`
243243
Then the wp-content/plugins/hello-world directory should exist
244244
And the wp-content/plugins/hello-world/hello-world.php file should exist
245-
And the wp-content/plugins/hello-world/.travis.yml file should exist
245+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
246246
And the wp-content/plugins/hello-world/bin directory should exist
247247

248248
When I run `wp dist-archive wp-content/plugins/hello-world .`
@@ -259,7 +259,7 @@ Feature: Generate a distribution archive of a project
259259
When I run `wp scaffold plugin hello-world`
260260
Then the wp-content/plugins/hello-world directory should exist
261261
And the wp-content/plugins/hello-world/hello-world.php file should exist
262-
And the wp-content/plugins/hello-world/.travis.yml file should exist
262+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
263263
And the wp-content/plugins/hello-world/bin directory should exist
264264

265265
When I run `wp dist-archive wp-content/plugins/hello-world --plugin-dirname=foobar-world`
@@ -283,7 +283,7 @@ Feature: Generate a distribution archive of a project
283283
When I run `wp scaffold plugin hello-world`
284284
Then the wp-content/plugins/hello-world directory should exist
285285
And the wp-content/plugins/hello-world/hello-world.php file should exist
286-
And the wp-content/plugins/hello-world/.travis.yml file should exist
286+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
287287
And the wp-content/plugins/hello-world/bin directory should exist
288288

289289
When I run `awk '{sub("\\* Version","Version",$0); print}' {RUN_DIR}/wp-content/plugins/hello-world/hello-world.php > hello-world.tmp && mv hello-world.tmp {RUN_DIR}/wp-content/plugins/hello-world/hello-world.php`
@@ -305,7 +305,7 @@ Feature: Generate a distribution archive of a project
305305
When I run `wp plugin install wp-content/plugins/hello-world.0.2.0.zip`
306306
Then the wp-content/plugins/hello-world directory should exist
307307
And the wp-content/plugins/hello-world/hello-world.php file should exist
308-
And the wp-content/plugins/hello-world/.travis.yml file should not exist
308+
And the wp-content/plugins/hello-world/.circleci/config.yml file should not exist
309309
And the wp-content/plugins/hello-world/bin directory should not exist
310310

311311
# This test does not work with SQLite because it wipes wp-content
@@ -389,7 +389,7 @@ Feature: Generate a distribution archive of a project
389389
When I run `wp scaffold plugin hello-world`
390390
Then the wp-content/plugins/hello-world directory should exist
391391
And the wp-content/plugins/hello-world/hello-world.php file should exist
392-
And the wp-content/plugins/hello-world/.travis.yml file should exist
392+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
393393
And the wp-content/plugins/hello-world/bin directory should exist
394394

395395
When I run `wp dist-archive wp-content/plugins/hello-world --filename-format={name}-{version}`
@@ -406,7 +406,7 @@ Feature: Generate a distribution archive of a project
406406
When I run `wp scaffold plugin hello-world`
407407
Then the wp-content/plugins/hello-world directory should exist
408408
And the wp-content/plugins/hello-world/hello-world.php file should exist
409-
And the wp-content/plugins/hello-world/.travis.yml file should exist
409+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
410410
And the wp-content/plugins/hello-world/bin directory should exist
411411

412412
When I run `wp dist-archive wp-content/plugins/hello-world hello-world.zip --filename-format={name}-{version}`
@@ -444,7 +444,7 @@ Feature: Generate a distribution archive of a project
444444
When I run `wp scaffold plugin hello-world`
445445
Then the wp-content/plugins/hello-world directory should exist
446446
And the wp-content/plugins/hello-world/hello-world.php file should exist
447-
And the wp-content/plugins/hello-world/.travis.yml file should exist
447+
And the wp-content/plugins/hello-world/.circleci/config.yml file should exist
448448
And the wp-content/plugins/hello-world/bin directory should exist
449449

450450
When I run `mkdir subdir`

0 commit comments

Comments
 (0)