You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/dist-archive.feature
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Feature: Generate a distribution archive of a project
7
7
When I run `wp scaffold plugin hello-world`
8
8
Then the wp-content/plugins/hello-world directory should exist
9
9
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
11
11
And the wp-content/plugins/hello-world/bin directory should exist
12
12
13
13
When I run `wp dist-archive wp-content/plugins/hello-world`
@@ -24,7 +24,7 @@ Feature: Generate a distribution archive of a project
24
24
When I run `wp plugin install wp-content/plugins/hello-world.0.1.0.zip`
25
25
Then the wp-content/plugins/hello-world directory should exist
26
26
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
28
28
And the wp-content/plugins/hello-world/bin directory should not exist
29
29
30
30
Scenario: Generates a tarball archive with a flag
@@ -33,7 +33,7 @@ Feature: Generate a distribution archive of a project
33
33
When I run `wp scaffold plugin hello-world`
34
34
Then the wp-content/plugins/hello-world directory should exist
35
35
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
37
37
And the wp-content/plugins/hello-world/bin directory should exist
38
38
39
39
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
50
50
When I try `cd wp-content/plugins/ && tar -zxvf hello-world.0.1.0.tar.gz`
51
51
Then the wp-content/plugins/hello-world directory should exist
52
52
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
54
54
And the wp-content/plugins/hello-world/bin directory should not exist
55
55
56
56
Scenario: Generate a ZIP archive with a custom name
@@ -59,7 +59,7 @@ Feature: Generate a distribution archive of a project
59
59
When I run `wp scaffold plugin hello-world`
60
60
Then the wp-content/plugins/hello-world directory should exist
61
61
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
63
63
And the wp-content/plugins/hello-world/bin directory should exist
64
64
65
65
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
76
76
When I run `wp scaffold plugin hello-world`
77
77
Then the wp-content/plugins/hello-world directory should exist
78
78
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
80
80
And the wp-content/plugins/hello-world/bin directory should exist
81
81
82
82
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
93
93
When I run `wp scaffold plugin hello-world`
94
94
Then the wp-content/plugins/hello-world directory should exist
95
95
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
97
97
And the wp-content/plugins/hello-world/bin directory should exist
98
98
99
99
When I run `mkdir subdir`
@@ -113,7 +113,7 @@ Feature: Generate a distribution archive of a project
113
113
When I run `wp scaffold plugin hello-world`
114
114
Then the wp-content/plugins/hello-world directory should exist
115
115
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
117
117
And the wp-content/plugins/hello-world/bin directory should exist
118
118
119
119
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
168
168
When I run `wp scaffold plugin hello-world`
169
169
Then the wp-content/plugins/hello-world directory should exist
170
170
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
172
172
And the wp-content/plugins/hello-world/bin directory should exist
173
173
174
174
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
191
191
When I run `wp scaffold plugin hello-world`
192
192
Then the wp-content/plugins/hello-world directory should exist
193
193
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
195
195
And the wp-content/plugins/hello-world/bin directory should exist
196
196
197
197
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
208
208
When I run `wp scaffold plugin hello-world`
209
209
Then the wp-content/plugins/hello-world directory should exist
210
210
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
212
212
And the wp-content/plugins/hello-world/bin directory should exist
213
213
214
214
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
225
225
When I run `wp scaffold plugin hello-world`
226
226
Then the wp-content/plugins/hello-world directory should exist
227
227
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
229
229
And the wp-content/plugins/hello-world/bin directory should exist
230
230
231
231
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
242
242
When I run `wp scaffold plugin hello-world`
243
243
Then the wp-content/plugins/hello-world directory should exist
244
244
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
246
246
And the wp-content/plugins/hello-world/bin directory should exist
247
247
248
248
When I run `wp dist-archive wp-content/plugins/hello-world .`
@@ -259,7 +259,7 @@ Feature: Generate a distribution archive of a project
259
259
When I run `wp scaffold plugin hello-world`
260
260
Then the wp-content/plugins/hello-world directory should exist
261
261
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
263
263
And the wp-content/plugins/hello-world/bin directory should exist
264
264
265
265
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
283
283
When I run `wp scaffold plugin hello-world`
284
284
Then the wp-content/plugins/hello-world directory should exist
285
285
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
287
287
And the wp-content/plugins/hello-world/bin directory should exist
288
288
289
289
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
305
305
When I run `wp plugin install wp-content/plugins/hello-world.0.2.0.zip`
306
306
Then the wp-content/plugins/hello-world directory should exist
307
307
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
309
309
And the wp-content/plugins/hello-world/bin directory should not exist
310
310
311
311
# This test does not work with SQLite because it wipes wp-content
@@ -389,7 +389,7 @@ Feature: Generate a distribution archive of a project
389
389
When I run `wp scaffold plugin hello-world`
390
390
Then the wp-content/plugins/hello-world directory should exist
391
391
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
393
393
And the wp-content/plugins/hello-world/bin directory should exist
394
394
395
395
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
406
406
When I run `wp scaffold plugin hello-world`
407
407
Then the wp-content/plugins/hello-world directory should exist
408
408
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
410
410
And the wp-content/plugins/hello-world/bin directory should exist
411
411
412
412
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
444
444
When I run `wp scaffold plugin hello-world`
445
445
Then the wp-content/plugins/hello-world directory should exist
446
446
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
448
448
And the wp-content/plugins/hello-world/bin directory should exist
0 commit comments