xamarin-test-cloud 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xamarin-test-cloud/cli.rb +16 -3
- data/lib/xamarin-test-cloud/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 063dc6c1f0f6aae197be5187d21083ad0cad1326
|
4
|
+
data.tar.gz: 85b2d5b0c2618dfe973ec3801e5af7b18b85f9d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51d3e40e7e1c527a3ab552236ddc1d8b4fec70a194efc91acdc35aef6b28f5ac688e24939b95e28c711418350228271b0aac374e4ba061a0295588a488d18ba6
|
7
|
+
data.tar.gz: 6dcb219503ba03c14b02fd4f736e5b5e51fdbd6d215ea49549f1820420aca49e1645cdf1e69a587b6d499a64c45a486a6d9391a5a1c4496ae66c72ab9aef687d
|
@@ -19,7 +19,7 @@ module XamarinTestCloud
|
|
19
19
|
|
20
20
|
attr_accessor :host, :app, :api_key, :appname, :app_explorer, :test_parameters,
|
21
21
|
:workspace, :config, :profile, :features_zip, :skip_check, :dry_run, :device_selection
|
22
|
-
attr_accessor :pretty
|
22
|
+
attr_accessor :pretty, :async
|
23
23
|
attr_accessor :endpoint_path
|
24
24
|
|
25
25
|
FILE_UPLOAD_ENDPOINT = 'upload2'
|
@@ -88,6 +88,11 @@ module XamarinTestCloud
|
|
88
88
|
:type => :boolean,
|
89
89
|
:default => false
|
90
90
|
|
91
|
+
method_option :async,
|
92
|
+
:desc => "Don't block waiting for test results.",
|
93
|
+
:type => :boolean,
|
94
|
+
:default => false
|
95
|
+
|
91
96
|
method_option 'skip-check',
|
92
97
|
:desc => 'Skip checking for ipa linked with Calabash (iOS only)',
|
93
98
|
:type => :boolean
|
@@ -117,6 +122,8 @@ module XamarinTestCloud
|
|
117
122
|
|
118
123
|
self.app = app_path
|
119
124
|
|
125
|
+
self.async = options[:async]
|
126
|
+
|
120
127
|
self.dry_run = options['dry-run']
|
121
128
|
|
122
129
|
self.api_key = api_key
|
@@ -178,6 +185,9 @@ module XamarinTestCloud
|
|
178
185
|
return
|
179
186
|
end
|
180
187
|
json = test_jon_data[:body]
|
188
|
+
if ENV['DEBUG']=='1'
|
189
|
+
p json
|
190
|
+
end
|
181
191
|
|
182
192
|
log_header("Test enqueued")
|
183
193
|
puts "User: #{json["user_email"]}"
|
@@ -189,7 +199,11 @@ module XamarinTestCloud
|
|
189
199
|
puts ""
|
190
200
|
|
191
201
|
|
192
|
-
|
202
|
+
unless self.async
|
203
|
+
wait_for_job(json["id"])
|
204
|
+
else
|
205
|
+
log 'Async mode: not awaiting test results'
|
206
|
+
end
|
193
207
|
|
194
208
|
end
|
195
209
|
|
@@ -205,7 +219,6 @@ module XamarinTestCloud
|
|
205
219
|
while(true)
|
206
220
|
status_json = JSON.parse(http_post("status", {'id' => id, 'api_key' => api_key}))
|
207
221
|
|
208
|
-
|
209
222
|
log "Status: #{status_json["status_description"]}"
|
210
223
|
if status_json["status"] == "finished"
|
211
224
|
puts "Done!"
|