tddium-preview 0.6.13 → 0.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/tddium/constant.rb +7 -5
- data/lib/tddium/version.rb +1 -1
- data/lib/tddium.rb +5 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/tddium/constant.rb
CHANGED
@@ -126,22 +126,24 @@ CI build when it's triggered by a POST:
|
|
126
126
|
4. Optionally, Tddium CI will then push to a git server (push to URL). For
|
127
127
|
example, enter the git URL to your Heroku staging app.
|
128
128
|
|
129
|
-
>>>
|
129
|
+
>>> Set both pull and push URLs to 'disable' to disable hosted CI completely.
|
130
130
|
|
131
131
|
When everything's been set up, you'll receive an SSH public key to authorize in
|
132
132
|
git for pulls and pushes, and a Hook URL to configure in a post-commit hook.
|
133
133
|
|
134
|
-
|
134
|
+
Tddium CI will not start builds on its own.
|
135
|
+
|
136
|
+
>>> To set up Hosted CI, enter a git URL to pull from.
|
135
137
|
|
136
138
|
EOF
|
137
139
|
SETUP_CAMPFIRE_FIRST_TIME =<<EOF;
|
138
140
|
|
139
|
-
To enable Campfire notifications, enter your Campfire subdomain, API token,
|
140
|
-
and the room name to post for this suite's builds.
|
141
|
+
>>> To enable Campfire notifications, enter your Campfire subdomain, API token,
|
142
|
+
and the room name to post for this suite's builds.
|
141
143
|
|
142
144
|
Subdomain and API token are shared by all suites that belong to you.
|
143
145
|
|
144
|
-
Leave the Campfire room name blank to disable Campfire for this suite.
|
146
|
+
>>> Leave the Campfire room name blank to disable Campfire for this suite.
|
145
147
|
|
146
148
|
EOF
|
147
149
|
|
data/lib/tddium/version.rb
CHANGED
data/lib/tddium.rb
CHANGED
@@ -325,6 +325,10 @@ class Tddium < Thor
|
|
325
325
|
|
326
326
|
prompt_suite_params(options, params)
|
327
327
|
|
328
|
+
params.each do |k,v|
|
329
|
+
params.delete(k) if v == 'disable'
|
330
|
+
end
|
331
|
+
|
328
332
|
# Create new suite if it does not exist yet
|
329
333
|
say Text::Process::CREATING_SUITE % [params[:repo_name], params[:branch]]
|
330
334
|
new_suite = call_api(:post, Api::Path::SUITES, {:suite => params})
|
@@ -451,7 +455,7 @@ class Tddium < Thor
|
|
451
455
|
|
452
456
|
def git_origin_url
|
453
457
|
result = `git config --get remote.origin.url`
|
454
|
-
if $? == 0
|
458
|
+
if $? == 0 && result =~ /@/
|
455
459
|
result.strip
|
456
460
|
else
|
457
461
|
nil
|