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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c59e01f78e2e138224b1db0fd22ddb3ab8908e1
4
- data.tar.gz: c6671312948a591b8e57a3493e2df15efa81de00
3
+ metadata.gz: 063dc6c1f0f6aae197be5187d21083ad0cad1326
4
+ data.tar.gz: 85b2d5b0c2618dfe973ec3801e5af7b18b85f9d4
5
5
  SHA512:
6
- metadata.gz: 0aad5a98a567ffe6d0528eb11e08446b4e1d35b2e20616aa09ab741591bf2ecc5452f58dc207c0675b088fcf356cf3e56895c94e167eaf4bbb39106fe6dc60f8
7
- data.tar.gz: dfeb7570550d26456fe88838b803e03728aff69dc8e298b3d68d2ba93ed648a65f15bb2e2583b885d7c97ec0ee17fac64eb0beaa8a48e9c795b71b74148d8c9a
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
- result = wait_for_job(json["id"])
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!"
@@ -1,3 +1,3 @@
1
1
  module XamarinTestCloud
2
- VERSION = '0.9.9'
2
+ VERSION = '0.9.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xamarin-test-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow