xamarin-test-cloud 0.9.31 → 0.9.32
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 +11 -24
- 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: f0b91cb57f390a497ed342bae9c3abdc87d35171
|
4
|
+
data.tar.gz: eb044b818687a84523d76d5c7125b9e04bd6014b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6c147623593273e4a8d89b3afe9dc3472f969f65cd4fd05d3c25e9da99a5bc4b66ca33cf096b713f41c25b699bd9ec7c0a7b7dc3f61ce6561f85158fe9d3784
|
7
|
+
data.tar.gz: 379cae750e0ca3cd5804ed63f66684112ee2766dd4a7282bdda023abfa2c0aea41c94d87d50a66e145f9debf943cc7ef6e128e3b32c710db0b75f9a7e08d9ba0
|
@@ -413,7 +413,7 @@ module XamarinTestCloud
|
|
413
413
|
'series' => self.series,
|
414
414
|
'api_key' => api_key,
|
415
415
|
'dsym_file' => dsym_zip,
|
416
|
-
'dsym_filename' =>
|
416
|
+
'dsym_filename' => dsym_file_name,
|
417
417
|
'app_filename' => File.basename(app)}
|
418
418
|
|
419
419
|
if profile #only if config and profile
|
@@ -532,9 +532,16 @@ module XamarinTestCloud
|
|
532
532
|
log_header('Negotiating upload')
|
533
533
|
|
534
534
|
app_digest = digest(app)
|
535
|
+
|
535
536
|
dsym_digest= nil
|
536
537
|
if dsym
|
537
|
-
|
538
|
+
FileUtils.cp_r(dsym,tmpdir)
|
539
|
+
files_in_dwarf = Dir.glob(File.join(tmpdir, File.basename(dsym), 'Contents','Resources','DWARF','*'))
|
540
|
+
unless files_in_dwarf.count == 1
|
541
|
+
raise ValidationError, "dSym #{dsym} contains more than one file in Contents/Resources/DWARF: #{files_in_dwarf}"
|
542
|
+
end
|
543
|
+
|
544
|
+
dsym_abs_path= files_in_dwarf.first
|
538
545
|
dsym_digest = digest(dsym_abs_path)
|
539
546
|
end
|
540
547
|
out = {'hashes' => hashes, 'app_hash' => app_digest, 'dsym_hash' => dsym_digest}
|
@@ -657,16 +664,6 @@ module XamarinTestCloud
|
|
657
664
|
files << config
|
658
665
|
end
|
659
666
|
|
660
|
-
if dsym
|
661
|
-
FileUtils.cp_r(dsym,tmpdir)
|
662
|
-
dsym_files = Dir.glob(File.join(tmpdir, File.basename(dsym), '**','*'))
|
663
|
-
|
664
|
-
outfile = File.join(tmpdir,dsym_zipped_name)
|
665
|
-
zip_dsym_files(dsym_files,tmpdir, outfile)
|
666
|
-
|
667
|
-
end
|
668
|
-
|
669
|
-
|
670
667
|
files += Dir.glob(File.join(tmpdir,"vendor", 'cache', '*'))
|
671
668
|
|
672
669
|
if workspace and workspace.strip != ''
|
@@ -683,9 +680,9 @@ module XamarinTestCloud
|
|
683
680
|
{:feature_prefix => dir, :workspace_prefix => workspace, :files => files.find_all { |file_or_dir| File.file? file_or_dir }}
|
684
681
|
end
|
685
682
|
|
686
|
-
def
|
683
|
+
def dsym_file_name
|
687
684
|
if dsym
|
688
|
-
"#{File.basename(self.app)}_dSym
|
685
|
+
"#{File.basename(self.app)}_dSym"
|
689
686
|
end
|
690
687
|
end
|
691
688
|
|
@@ -819,16 +816,6 @@ module XamarinTestCloud
|
|
819
816
|
end
|
820
817
|
end
|
821
818
|
|
822
|
-
def zip_dsym_files(files,basedir, out)
|
823
|
-
Zip::ZipFile.open(out, Zip::ZipFile::CREATE) do |zipfile|
|
824
|
-
files.each do |file|
|
825
|
-
zipfile.add(file.sub("#{basedir}#{File::Separator}",''), file)
|
826
|
-
end
|
827
|
-
end
|
828
|
-
|
829
|
-
end
|
830
|
-
|
831
|
-
|
832
819
|
|
833
820
|
def verify_dependencies(path)
|
834
821
|
if is_android?
|