xamarin-test-cloud 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/xamarin-test-cloud/cli.rb +0 -62
- data/lib/xamarin-test-cloud/version.rb +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79ca0df85dc898bbc9f85b478bb92ab5e77c679d2f42df230f6aeee6ee3e31d4
|
4
|
+
data.tar.gz: 282a584c0545b286d307dbe5342442632d1774508bd07545f6a25271a7912ab3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bc6f0228734f028dc747e3fe4536779396e1d8526c4f95e7c1debd10fda40bf0e38aa6d0cb6be6d88258c6b350823a634168e7095fb304496800ae7c2e56933
|
7
|
+
data.tar.gz: 3d6d871440db2233ac64d743309923f5794b55d67f89aacf5e4a8b297196606fbb21e1bbb55525b6aa7e3c8f9837e88cb34b47191982d8876842a0a32bc48c37
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
### 2.3.0
|
2
|
+
|
3
|
+
Relax mime-types dependency to work with fastlane gem.
|
4
|
+
|
5
|
+
fastlane users must pin their retriable dependency to 2.0.1.
|
6
|
+
|
7
|
+
The "this app is linked with the LPServer" check has been removed - see
|
8
|
+
the commit comments.
|
9
|
+
|
1
10
|
### 2.2.0
|
2
11
|
|
3
12
|
Remove the json and bundler version requirements to make this gem more
|
@@ -431,56 +431,6 @@ You can learn how to compile your app for release here:
|
|
431
431
|
|
432
432
|
http://docs.xamarin.com/guides/android/deployment%2C_testing%2C_and_metrics/publishing_an_application/part_1_-_preparing_an_application_for_release
|
433
433
|
|
434
|
-
]
|
435
|
-
end
|
436
|
-
end
|
437
|
-
|
438
|
-
# TODO: move to separate module/class
|
439
|
-
def expect_ipa_linked_with_calabash(app_path)
|
440
|
-
# Cannot use #is_ios because that method depends on the @app instance
|
441
|
-
# variable which is not set when this method is called.
|
442
|
-
return nil if !app_path.end_with?(".ipa")
|
443
|
-
|
444
|
-
# otool does not exist in non-macOS environments. We have to rely on
|
445
|
-
# the Test Cloud to perform the validation.
|
446
|
-
return nil if !Environment.macos_env?
|
447
|
-
|
448
|
-
# This will allow the automatic dylib injection on Test Cloud
|
449
|
-
parameters = options["test-parameters"] || {}
|
450
|
-
return nil if parameters[:skip_tca_check] || parameters["skip_tca_check"]
|
451
|
-
|
452
|
-
require "xamarin-test-cloud/tmpdir"
|
453
|
-
tmpdir = TmpDir.mktmpdir
|
454
|
-
|
455
|
-
unzip_file(app_path, tmpdir)
|
456
|
-
|
457
|
-
payload_dir = File.join(tmpdir, "Payload")
|
458
|
-
|
459
|
-
if !File.directory?(payload_dir)
|
460
|
-
raise ValidationError, %Q[
|
461
|
-
Did not find a Payload directory after expanding the ipa.
|
462
|
-
|
463
|
-
#{app_path}
|
464
|
-
|
465
|
-
The .ipa was not packaged correctly.
|
466
|
-
|
467
|
-
]
|
468
|
-
end
|
469
|
-
|
470
|
-
app_dir = Dir.foreach("#{tmpdir}/Payload").find { |d| /\.app$/.match(d) }
|
471
|
-
res = check_for_calabash_server(tmpdir, app_dir)
|
472
|
-
|
473
|
-
if /CalabashServer/.match(res)
|
474
|
-
puts "ipa: #{app_path} *contains* calabash.framework"
|
475
|
-
else
|
476
|
-
raise ValidationError, %Q[
|
477
|
-
|
478
|
-
The ipa does not contain an app that is linked with Calabash.
|
479
|
-
|
480
|
-
Your app must link the calabash.framework at compile time or it must dynamically
|
481
|
-
load (in code) a Calabash dylib.
|
482
|
-
|
483
|
-
https://github.com/calabash/calabash-ios/wiki/Tutorial%3A-How-to-add-Calabash-to-Xcode
|
484
434
|
]
|
485
435
|
end
|
486
436
|
end
|
@@ -490,7 +440,6 @@ https://github.com/calabash/calabash-ios/wiki/Tutorial%3A-How-to-add-Calabash-to
|
|
490
440
|
expect_app_exists_at_path(expanded)
|
491
441
|
expect_apk_or_ipa(expanded)
|
492
442
|
expect_no_shared_runtime(expanded)
|
493
|
-
expect_ipa_linked_with_calabash(expanded)
|
494
443
|
|
495
444
|
@app = expanded
|
496
445
|
end
|
@@ -1507,17 +1456,6 @@ Check your local Gemfile and and the remote Gemfile at:
|
|
1507
1456
|
system(command, *arguments)
|
1508
1457
|
$?.exitstatus == 0
|
1509
1458
|
end
|
1510
|
-
|
1511
|
-
# TODO: Server detection algorithm might be broken.
|
1512
|
-
# https://github.com/xamarinhq/test-cloud-command-line/issues/19
|
1513
|
-
def check_for_calabash_server(dir, app_dir)
|
1514
|
-
if system("xcrun --find otool-classic &> /dev/null")
|
1515
|
-
otool_cmd = "xcrun otool-classic"
|
1516
|
-
else
|
1517
|
-
otool_cmd = "xcrun otool"
|
1518
|
-
end
|
1519
|
-
`#{otool_cmd} "#{File.expand_path(dir)}/Payload/#{app_dir}/"* -o 2> /dev/null | grep CalabashServer`
|
1520
|
-
end
|
1521
1459
|
end
|
1522
1460
|
end
|
1523
1461
|
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: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-04
|
12
|
+
date: 2019-06-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -117,16 +117,22 @@ dependencies:
|
|
117
117
|
name: mime-types
|
118
118
|
requirement: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- - "
|
120
|
+
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '2.99'
|
123
|
+
- - "<"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '4.0'
|
123
126
|
type: :runtime
|
124
127
|
prerelease: false
|
125
128
|
version_requirements: !ruby/object:Gem::Requirement
|
126
129
|
requirements:
|
127
|
-
- - "
|
130
|
+
- - ">="
|
128
131
|
- !ruby/object:Gem::Version
|
129
132
|
version: '2.99'
|
133
|
+
- - "<"
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '4.0'
|
130
136
|
- !ruby/object:Gem::Dependency
|
131
137
|
name: rspec_junit_formatter
|
132
138
|
requirement: !ruby/object:Gem::Requirement
|
@@ -343,7 +349,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
349
|
- !ruby/object:Gem::Version
|
344
350
|
version: '0'
|
345
351
|
requirements: []
|
346
|
-
rubygems_version: 3.0.
|
352
|
+
rubygems_version: 3.0.1
|
347
353
|
signing_key:
|
348
354
|
specification_version: 4
|
349
355
|
summary: Command-line interface to Xamarin Test Cloud
|