fastlane-plugin-aws_device_farm 0.3.16.pre.alpha.pre.127 → 0.3.16
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b223b834a25dd2c8a07a8f21dd10317926e4369d2c42da998b2392a32406d27
|
|
4
|
+
data.tar.gz: 8dd9ce0c60864743a0682e7cc1d147929a098f2f15e1cc0feac6cdb2b9d4432d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa5cb8b1a2611f2091820575ea3ea6313d70da3325fe02c31f7632caff5c9ab957177b58db3a0a9ba09b380e2b0f9df5d113e0c566ec9914cf41af7670833a0d
|
|
7
|
+
data.tar.gz: 1389378cf078ec87428aeda08ddd8867c79148ef1fa3867eaed58fffe8f22f0bc4532052ad57a2b6fb2ef0fdf0b50fb3cdcd364aa6fa61f5240c3bc52902c17e
|
|
@@ -310,36 +310,6 @@ module Fastlane
|
|
|
310
310
|
is_string: false,
|
|
311
311
|
optional: true,
|
|
312
312
|
default_value: false
|
|
313
|
-
),
|
|
314
|
-
FastlaneCore::ConfigItem.new(
|
|
315
|
-
key: :artifact,
|
|
316
|
-
env_name: 'FL_ALLOW_ARTIFACT',
|
|
317
|
-
description: 'Do you download Artifact?',
|
|
318
|
-
is_string: false,
|
|
319
|
-
optional: true,
|
|
320
|
-
default_value: false
|
|
321
|
-
),
|
|
322
|
-
FastlaneCore::ConfigItem.new(
|
|
323
|
-
key: :artifact_output_dir,
|
|
324
|
-
env_name: 'FL_ARTIFACT_OUTPUT_DIR',
|
|
325
|
-
description: 'Artifact output directory',
|
|
326
|
-
is_string: true,
|
|
327
|
-
optional: true,
|
|
328
|
-
default_value: "./test_outputs"
|
|
329
|
-
),
|
|
330
|
-
FastlaneCore::ConfigItem.new(
|
|
331
|
-
key: :artifact_types,
|
|
332
|
-
env_name: 'FL_ARTIFACT_TYPES',
|
|
333
|
-
description: 'Download Artifact types',
|
|
334
|
-
is_string: false,
|
|
335
|
-
type: Array,
|
|
336
|
-
optional: true,
|
|
337
|
-
default_value: [],
|
|
338
|
-
verify_block: proc do |value|
|
|
339
|
-
valid_values = ['LOG',
|
|
340
|
-
'SCREENSHOT']
|
|
341
|
-
raise "Artifact type concludes invalid values are: '#{(value - valid_values)}'. 🙈".red unless (value - valid_values).empty?
|
|
342
|
-
end
|
|
343
313
|
)
|
|
344
314
|
]
|
|
345
315
|
end
|
|
@@ -486,30 +456,6 @@ module Fastlane
|
|
|
486
456
|
end
|
|
487
457
|
rows << [status, j.name, j.device.form_factor, j.device.platform, j.device.os]
|
|
488
458
|
|
|
489
|
-
# artifact
|
|
490
|
-
artifact_support_types = %w(LOG SCREENSHOT)
|
|
491
|
-
params[:artifact_types].each do |type|
|
|
492
|
-
next unless artifact_support_types.include?(type) && params[:artifact]
|
|
493
|
-
|
|
494
|
-
artifact = @client.list_artifacts({
|
|
495
|
-
arn: j.arn,
|
|
496
|
-
type: type
|
|
497
|
-
})
|
|
498
|
-
|
|
499
|
-
artifact.artifacts.each do |artifact|
|
|
500
|
-
case type
|
|
501
|
-
when "LOG"
|
|
502
|
-
file_name = "#{artifact.name}.#{artifact.extension}"
|
|
503
|
-
when "SCREENSHOT"
|
|
504
|
-
file_name = "#{artifact.name}.#{artifact.extension}"
|
|
505
|
-
end
|
|
506
|
-
|
|
507
|
-
file_dir_path = "#{params[:artifact_output_dir]}/#{j.name}/#{j.device.os}"
|
|
508
|
-
Helper::AwsDeviceFarmHelper.get_artifact(url: artifact.url, file_dir_path: file_dir_path, file_name: file_name)
|
|
509
|
-
end
|
|
510
|
-
end
|
|
511
|
-
|
|
512
|
-
# test suites
|
|
513
459
|
suite = @client.list_suites({
|
|
514
460
|
arn: j.arn
|
|
515
461
|
})
|
|
@@ -547,10 +493,7 @@ module Fastlane
|
|
|
547
493
|
"time" => j.device_minutes.metered,
|
|
548
494
|
"test_suites" => test_suites
|
|
549
495
|
}
|
|
550
|
-
|
|
551
|
-
# need multi device support
|
|
552
|
-
file_prefix = "#{j.name}-#{j.device.os}"
|
|
553
|
-
Helper::AwsDeviceFarmHelper.create_junit_xml(test_results: test_results, file_path: params[:junit_xml_output_path], file_prefix: file_prefix) if params[:junit_xml]
|
|
496
|
+
Helper::AwsDeviceFarmHelper.create_junit_xml(test_results: test_results, file_path: params[:junit_xml_output_path]) if params[:junit_xml]
|
|
554
497
|
end
|
|
555
498
|
end
|
|
556
499
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
require 'rexml/document'
|
|
2
2
|
require 'fileutils'
|
|
3
|
-
require 'open-uri'
|
|
4
3
|
|
|
5
4
|
module Fastlane
|
|
6
5
|
module Helper
|
|
7
6
|
class AwsDeviceFarmHelper
|
|
8
7
|
|
|
9
8
|
# create Junit.xml
|
|
10
|
-
def self.create_junit_xml(test_results:, file_path
|
|
9
|
+
def self.create_junit_xml(test_results:, file_path:)
|
|
11
10
|
doc = REXML::Document.new
|
|
12
11
|
doc << REXML::XMLDecl.new('1.0', 'UTF-8')
|
|
13
12
|
|
|
@@ -38,26 +37,12 @@ module Fastlane
|
|
|
38
37
|
end
|
|
39
38
|
|
|
40
39
|
# output
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
FileUtils.mkdir_p(file_dir_path)
|
|
45
|
-
File.open("#{file_dir_path}/#{file_name}", 'w') do |file|
|
|
40
|
+
FileUtils.mkdir_p(File.dirname(file_path))
|
|
41
|
+
File.open(file_path, 'w') do |file|
|
|
46
42
|
doc.write(file, indent=2)
|
|
47
43
|
end
|
|
48
44
|
end
|
|
49
45
|
|
|
50
|
-
# get Artifact
|
|
51
|
-
def self.get_artifact(url:, file_dir_path:, file_name:)
|
|
52
|
-
file_path = "#{file_dir_path}/#{file_name}"
|
|
53
|
-
FileUtils.mkdir_p(File.dirname(file_path))
|
|
54
|
-
|
|
55
|
-
open(url) do |file|
|
|
56
|
-
open(file_path, "w+b") do |out|
|
|
57
|
-
out.write(file.read)
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
46
|
end
|
|
62
47
|
end
|
|
63
48
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-aws_device_farm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.16
|
|
4
|
+
version: 0.3.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Helmut Januschka
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk
|
|
@@ -136,12 +136,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
136
136
|
version: '0'
|
|
137
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
requirements:
|
|
139
|
-
- - "
|
|
139
|
+
- - ">="
|
|
140
140
|
- !ruby/object:Gem::Version
|
|
141
|
-
version:
|
|
141
|
+
version: '0'
|
|
142
142
|
requirements: []
|
|
143
|
-
|
|
144
|
-
rubygems_version: 2.7.7
|
|
143
|
+
rubygems_version: 3.0.3
|
|
145
144
|
signing_key:
|
|
146
145
|
specification_version: 4
|
|
147
146
|
summary: Run UI Tests on AWS Devicefarm
|