xamarin-test-cloud 0.9.13 → 0.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e0454ffc8af1f319b89778e181e406ecd29c5d5
4
- data.tar.gz: 178ba623b208ecb038960113af1a9f2b7b92a315
3
+ metadata.gz: 35e61874bcb5d64412787f40f750ddd43c6579bc
4
+ data.tar.gz: 536b45e15cafc8f8acdf93a59ff89f85c0308b89
5
5
  SHA512:
6
- metadata.gz: 30144ebd665cd863b84068da4e2d710733bc47ba1e245a6db4d01a6638d53a19ab23f14bf9ab3c8ecb52d472c481ed1be6640bc37bcea1a5b1802ce4ef0dc738
7
- data.tar.gz: d7e8537bf27538a34eebd3247d9ce7a34f1982e8a7e75331781834bc195f9b8f36942e6a54adf076729d265e17f9afe70593ab645d747ac38c9c1c24142c05c6
6
+ metadata.gz: 8835e33cb451faabe703304e1d80739625dda9f7178d0a56f20990a0142678b3b9830c5945ac1aa21a9134f7a800197c00c963c33cabdb792c46f82f19b7659a
7
+ data.tar.gz: a0675f63ca694aa768048e3477b07b20f3d6b112bdd12c99cc44ec3e15e20fa330ccf5da73f5d57fb33ce3c2976cb783d028e512c2cb78163c446e8dbdfb4143
@@ -19,7 +19,7 @@ module XamarinTestCloud
19
19
  include Thor::Actions
20
20
 
21
21
  attr_accessor :host, :app, :api_key, :appname, :app_explorer, :test_parameters,
22
- :workspace, :config, :profile, :skip_check, :dry_run, :device_selection
22
+ :workspace, :config, :profile, :dry_run, :device_selection
23
23
  attr_accessor :pretty, :async
24
24
  attr_accessor :endpoint_path
25
25
 
@@ -93,10 +93,6 @@ module XamarinTestCloud
93
93
  :type => :boolean,
94
94
  :default => false
95
95
 
96
- method_option 'skip-check',
97
- :desc => 'Skip checking for ipa linked with Calabash (iOS only)',
98
- :type => :boolean
99
-
100
96
  method_option 'dry-run',
101
97
  :desc => "Sanity check only, don't upload",
102
98
  :aliases => '-s',
@@ -146,8 +142,6 @@ module XamarinTestCloud
146
142
 
147
143
  self.app_explorer = options['app-explorer']
148
144
 
149
- self.skip_check = options['skip-check']
150
-
151
145
  unless app_explorer
152
146
  parse_and_set_config_and_profile
153
147
  end
@@ -180,7 +174,6 @@ module XamarinTestCloud
180
174
  puts "Workspace = #{self.workspace}"
181
175
  puts "Config = #{self.config}"
182
176
  puts "Profile = #{self.profile}"
183
- puts "Skip Check = #{self.skip_check}"
184
177
  end
185
178
 
186
179
 
@@ -365,6 +358,19 @@ module XamarinTestCloud
365
358
  puts 'Files too large'
366
359
  end
367
360
  else
361
+ begin
362
+ r = JSON.parse(response)
363
+ if r["invalid_platform"]
364
+ abort do
365
+ if r["invalid_platform"] == "android"
366
+ log "#{app} cannot be tested on Android devices. Please create a new device selection on the Xamarin Test Cloud website."
367
+ else
368
+ log "#{app} cannot be tested on iOS devices. Please create a new device selection on the Xamarin Test Cloud website."
369
+ end
370
+ end
371
+ end
372
+ rescue
373
+ end
368
374
  abort do
369
375
  log 'Unexpected Error. Please contact support at testcloud@xamarin.com.'
370
376
  end
@@ -610,13 +616,12 @@ module XamarinTestCloud
610
616
  unless (/\.(apk|ipa)$/ =~ app)
611
617
  raise ValidationError, '<APP> should be either an ipa or apk file.'
612
618
  end
613
- if is_ios? and is_macosx? and not skip_check
619
+ if is_ios? and is_macosx?
614
620
  log_header('Checking ipa for linking with Calabash')
615
621
  server = validate_ipa(app)
616
622
  abort_unless(server) do
617
623
  puts 'The .ipa file does not seem to be linked with Calabash.'
618
624
  puts 'Verify that your app is linked correctly.'
619
- puts 'To disable this check run with --skip-check or set Environment Variable CHECK_IPA=0'
620
625
  end
621
626
  end
622
627
  server
@@ -1,3 +1,3 @@
1
1
  module XamarinTestCloud
2
- VERSION = '0.9.13'
2
+ VERSION = '0.9.14'
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.13
4
+ version: 0.9.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.0.2
144
+ rubygems_version: 2.0.5
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Command-line interface to Xamarin Test Cloud
@@ -152,4 +152,3 @@ test_files:
152
152
  - test/ipa/features/support/hooks.rb
153
153
  - test/ipa/features/support/launch.rb
154
154
  - test/test_parser.rb
155
- has_rdoc: