gitcycle 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitcycle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 14
10
- version: 0.2.14
9
+ - 15
10
+ version: 0.2.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-13 00:00:00 -08:00
18
+ date: 2012-02-27 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -150,8 +150,16 @@ files:
150
150
  - README.md
151
151
  - Rakefile
152
152
  - bin/gitc
153
- - features/config.example.yml
154
- - features/gitcycle.feature
153
+ - features/branch.feature
154
+ - features/checkout.feature
155
+ - features/config/config.example.yml
156
+ - features/discuss.feature
157
+ - features/errors.feature
158
+ - features/pull.feature
159
+ - features/qa.feature
160
+ - features/ready.feature
161
+ - features/review.feature
162
+ - features/setup.feature
155
163
  - features/steps/gitcycle_steps.rb
156
164
  - features/support/env.rb
157
165
  - gitcycle.gemspec
@@ -192,7 +200,15 @@ signing_key:
192
200
  specification_version: 3
193
201
  summary: Tame your development cycle
194
202
  test_files:
195
- - features/config.example.yml
196
- - features/gitcycle.feature
203
+ - features/branch.feature
204
+ - features/checkout.feature
205
+ - features/config/config.example.yml
206
+ - features/discuss.feature
207
+ - features/errors.feature
208
+ - features/pull.feature
209
+ - features/qa.feature
210
+ - features/ready.feature
211
+ - features/review.feature
212
+ - features/setup.feature
197
213
  - features/steps/gitcycle_steps.rb
198
214
  - features/support/env.rb
@@ -1,231 +0,0 @@
1
- Feature: gitcycle
2
-
3
- Scenario: No command given
4
- When I execute gitcycle with nothing
5
- Then gitcycle runs
6
- And output includes "No command specified"
7
-
8
- Scenario: Non-existent command
9
- When I execute gitcycle with "blah blah"
10
- Then gitcycle runs
11
- And output includes "Command not recognized."
12
-
13
- Scenario: Setup
14
- When I execute gitcycle setup
15
- Then gitcycle runs
16
- And output includes "Configuration saved."
17
- And gitcycle.yml should be valid
18
-
19
- Scenario: Feature branch w/ custom branch name
20
- Given a fresh set of repositories
21
- And a new Lighthouse ticket
22
- When I cd to the user repo
23
- And I execute gitcycle branch with the Lighthouse ticket URL
24
- And I enter "y"
25
- And I enter "n"
26
- And I enter "ticket.id-rename"
27
- Then gitcycle runs
28
- And output includes
29
- """
30
- Retrieving branch information from gitcycle.
31
- Your work will eventually merge into 'master'. Is this correct? (y/n)
32
- Would you like to name your branch 'ticket.id'? (y/n)
33
- What would you like to name your branch?
34
- Adding remote repo 'config.owner/config.repo'.
35
- Fetching remote 'config.owner'.
36
- Checking out remote branch 'ticket.id-rename' from 'config.owner/config.repo/master'.
37
- Fetching remote 'origin'.
38
- Pushing 'origin/ticket.id-rename'.
39
- Sending branch information to gitcycle.
40
- """
41
- And redis entries valid
42
-
43
- Scenario: Feature branch
44
- Given a fresh set of repositories
45
- And a new Lighthouse ticket
46
- When I cd to the user repo
47
- And I execute gitcycle branch with the Lighthouse ticket URL
48
- And I enter "y"
49
- And I enter "y"
50
- Then gitcycle runs
51
- And output includes
52
- """
53
- Retrieving branch information from gitcycle.
54
- Your work will eventually merge into 'master'. Is this correct? (y/n)
55
- Would you like to name your branch 'ticket.id'? (y/n)
56
- Adding remote repo 'config.owner/config.repo'.
57
- Fetching remote 'config.owner'.
58
- Checking out remote branch 'ticket.id' from 'config.owner/config.repo/master'.
59
- Fetching remote 'origin'.
60
- Pushing 'origin/ticket.id'.
61
- Sending branch information to gitcycle.
62
- """
63
- And redis entries valid
64
-
65
- Scenario: Checkout via ticket w/ existing branch
66
- When I cd to the user repo
67
- And I execute gitcycle checkout with the Lighthouse ticket URL
68
- Then gitcycle runs
69
- And output includes
70
- """
71
- Retrieving branch information from gitcycle.
72
- Checking out branch 'ticket.id'.
73
- """
74
- And current branch is "ticket.id"
75
-
76
- Scenario: Checkout via ticket w/ fresh repo
77
- Given a fresh set of repositories
78
- When I cd to the user repo
79
- And I execute gitcycle checkout with the Lighthouse ticket URL
80
- Then gitcycle runs
81
- And output includes
82
- """
83
- Retrieving branch information from gitcycle.
84
- Tracking branch 'origin/ticket.id'.
85
- """
86
- And current branch is "ticket.id"
87
-
88
- Scenario: Pull changes from upstream
89
- When I cd to the owner repo
90
- And I checkout master
91
- And I commit something
92
- And I cd to the user repo
93
- And I checkout ticket.id
94
- And I execute gitcycle with "pull"
95
- Then gitcycle runs
96
- And output includes
97
- """
98
- Retrieving branch information from gitcycle.
99
- Adding remote repo 'config.owner/config.repo'.
100
- Fetching remote 'config.owner'.
101
- Merging remote branch 'master' from 'config.owner/config.repo'.
102
- """
103
- And git log should contain the last commit
104
-
105
- Scenario: Discuss commits w/ no parameters and nothing committed
106
- When I cd to the user repo
107
- And I checkout ticket.id
108
- And I execute gitcycle with "discuss"
109
- Then gitcycle runs
110
- And output includes
111
- """
112
- Retrieving branch information from gitcycle.
113
- Creating GitHub pull request.
114
- You must push code before opening a pull request.
115
- """
116
- And redis entries valid
117
-
118
- Scenario: Discuss commits w/ no parameters and something committed
119
- When I cd to the user repo
120
- And I checkout ticket.id
121
- And I commit something
122
- And I execute gitcycle with "discuss"
123
- Then gitcycle runs
124
- And output includes
125
- """
126
- Retrieving branch information from gitcycle.
127
- Creating GitHub pull request.
128
- Labeling issue as 'Discuss'.
129
- """
130
- And output includes "Opening issue" with URL
131
- And URL is a valid issue
132
- And redis entries valid
133
-
134
- Scenario: Discuss commits w/ parameters
135
- When I cd to the user repo
136
- And I checkout ticket.id
137
- And I execute gitcycle with "discuss issue.id"
138
- Then gitcycle runs
139
- And output includes "Retrieving branch information from gitcycle."
140
- And output does not include "Creating GitHub pull request."
141
- And output does not include "Branch not found."
142
- And output does not include "You must push code before opening a pull request."
143
- And output includes "Opening issue" with URL
144
- And URL is a valid issue
145
-
146
- Scenario: Ready issue w/ no parameters
147
- When I cd to the user repo
148
- And I checkout ticket.id
149
- And I execute gitcycle with "ready"
150
- Then gitcycle runs
151
- And output includes
152
- """
153
- Retrieving branch information from gitcycle.
154
- Adding remote repo 'config.owner/config.repo'.
155
- Fetching remote 'config.owner'.
156
- Merging remote branch 'master' from 'config.owner/config.repo'.
157
- Adding remote repo 'config.user/config.repo'.
158
- Fetching remote 'config.user'.
159
- Merging remote branch 'ticket.id' from 'config.user/config.repo'.
160
- Labeling issue as 'Pending Review'.
161
- """
162
-
163
- Scenario: Ready issue w/ parameters
164
- When I cd to the user repo
165
- And I execute gitcycle with "ready issue.id"
166
- Then gitcycle runs
167
- And output includes "Labeling issues as 'Pending Review'."
168
-
169
- Scenario: Reviewed issue w/ no parameters
170
- When I cd to the user repo
171
- And I checkout ticket.id
172
- And I execute gitcycle with "review pass"
173
- Then gitcycle runs
174
- And output includes "Labeling issue as 'Pending QA'."
175
-
176
- Scenario: Reviewed issue w/ parameters
177
- When I cd to the user repo
178
- And I execute gitcycle with "review pass issue.id"
179
- Then gitcycle runs
180
- And output includes "Labeling issues as 'Pending QA'."
181
-
182
- Scenario: QA issue
183
- When I cd to the owner repo
184
- And I checkout master
185
- And I execute gitcycle with "qa issue.id"
186
- And I enter "y"
187
- Then gitcycle runs
188
- And output includes
189
- """
190
- Do you want to create a QA branch from 'master'? (y/n)
191
- Retrieving branch information from gitcycle.
192
- Deleting old QA branch 'qa_master_config.user'.
193
- Adding remote repo 'config.owner/config.repo'.
194
- Fetching remote 'config.owner'.
195
- Checking out remote branch 'qa_master_config.user' from 'config.owner/config.repo/master'.
196
- Fetching remote 'origin'.
197
- Pushing 'origin/qa_master_config.user'.
198
- Adding remote repo 'config.user/config.repo'.
199
- Fetching remote 'config.user'.
200
- Merging remote branch 'ticket.id' from 'config.user/config.repo'.
201
- Pushing branch 'qa_master_config.user'.
202
- Type 'gitc qa pass' to approve all issues in this branch.
203
- Type 'gitc qa fail' to reject all issues in this branch.
204
- """
205
-
206
- Scenario: QA issue pass
207
- When I cd to the owner repo
208
- And I checkout qa_master_config.user
209
- And I execute gitcycle with "qa pass"
210
- Then gitcycle runs
211
- And output includes
212
- """
213
- Retrieving branch information from gitcycle.
214
- Checking out branch 'master'.
215
- Adding remote repo 'config.user/config.repo'.
216
- Fetching remote 'config.user'.
217
- Merging remote branch 'ticket.id' from 'config.user/config.repo'.
218
- Pushing branch 'master'.
219
- Labeling all issues as 'Pass'.
220
- """
221
-
222
- Scenario: QA issue list
223
- When I cd to the owner repo
224
- And I checkout master
225
- And I execute gitcycle with "qa"
226
- Then gitcycle runs
227
- And output includes
228
- """
229
- qa_master_config.user
230
- issue #issue.id\tconfig.user/ticket.id
231
- """