fastlane-plugin-aws_device_farm 0.3.8 → 0.3.9.pre.alpha.pre.83
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f824cc9ebde843ae7b5e3df55a436d2a183a3ed65ad0cef8d60f1d66340a5ca1
|
4
|
+
data.tar.gz: c1006dd7323416fb3b2ecf45a2595893e2502dcc2ae22b37e21cfa005a558ae0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f225dab3b37cfe489faaf9449366f8fcaaf14bd7898adcab12a7b62b1598bbf20834ad48ec29d22f97b3bd209b93e76de1904323c6f5a532bd331cee3384ecc5
|
7
|
+
data.tar.gz: 50271aa8c7eaef482d7d216c99c80c2eda393bf0478de961e8ab8200af4930414b06e0fa39fb13d0f40762f7d40fc1da9c0d61788f20be481281efc691f1d372
|
data/README.md
CHANGED
@@ -75,8 +75,10 @@ end
|
|
75
75
|
```
|
76
76
|
|
77
77
|
The plugin also exposes two ENV variables in case you want to make additional calls after the action is finished.
|
78
|
-
`ENV["AWS_DEVICE_FARM_RUN_ARN"] containing the arn of the run`
|
79
|
-
`ENV["AWS_DEVICE_FARM_PROJECT_ARN"] containing the arn of the project`
|
78
|
+
`ENV["AWS_DEVICE_FARM_RUN_ARN"] containing the arn of the run` \
|
79
|
+
`ENV["AWS_DEVICE_FARM_PROJECT_ARN"] containing the arn of the project` \
|
80
|
+
`ENV["AWS_DEVICE_FARM_WEB_URL_OF_RUN"] containg the web url of the run`
|
81
|
+
|
80
82
|
|
81
83
|
## Options
|
82
84
|
|
@@ -95,6 +97,7 @@ The plugin also exposes two ENV variables in case you want to make additional ca
|
|
95
97
|
| allow_failed_tests | false | Do you want to allow failing tests? | Boolean |
|
96
98
|
| test_spec | | Define the device farm custom TestSpec ARN to use (can be obtained using the AWS CLI `devicefarm list-uploads` command) | String |
|
97
99
|
| filter | | Define a filter for your test run and only run the tests in the filter (note that using `test_spec` overrides the `filter` option) | String |
|
100
|
+
| print_web_url_of_run | false | Do you want to print the web url of run in the messages? | Boolean |
|
98
101
|
|
99
102
|
Possible types see: http://docs.aws.amazon.com/sdkforruby/api/Aws/DeviceFarm/Client.html#create_upload-instance_method
|
100
103
|
|
@@ -57,7 +57,10 @@ module Fastlane
|
|
57
57
|
raise 'Binary upload failed. 🙈' unless upload.status == 'SUCCEEDED'
|
58
58
|
|
59
59
|
# Schedule the run.
|
60
|
-
|
60
|
+
run = schedule_run params[:run_name], project, device_pool, upload, test_upload, type, params
|
61
|
+
run_url = get_run_url_from_arn run.arn
|
62
|
+
ENV["AWS_DEVICE_FARM_WEB_URL_OF_RUN"] = run_url
|
63
|
+
UI.message "The Device Farm console URL for the run: #{run_url}" if params[:print_web_url_of_run] == true
|
61
64
|
|
62
65
|
# Wait for run to finish.
|
63
66
|
# rubocop:disable Metrics/BlockNesting
|
@@ -75,8 +78,8 @@ module Fastlane
|
|
75
78
|
else
|
76
79
|
UI.message 'Successfully scheduled the tests on the AWS device farm. ✅'.green
|
77
80
|
end
|
78
|
-
|
79
|
-
run
|
81
|
+
|
82
|
+
run
|
80
83
|
end
|
81
84
|
# rubocop:enable Metrics/BlockNesting
|
82
85
|
#
|
@@ -247,6 +250,14 @@ module Fastlane
|
|
247
250
|
description: 'Define the device farm custom TestSpec ARN to use (can be obtained using the AWS CLI `devicefarm list-uploads` command)',
|
248
251
|
is_string: true,
|
249
252
|
optional: true
|
253
|
+
),
|
254
|
+
FastlaneCore::ConfigItem.new(
|
255
|
+
key: :print_web_url_of_run,
|
256
|
+
env_name: 'FL_AWS_DEVICE_FARM_WEB_URL_OF_RUN',
|
257
|
+
description: 'Print the web url of the test run to or not',
|
258
|
+
is_string: false,
|
259
|
+
optional: true,
|
260
|
+
default_value: false
|
250
261
|
)
|
251
262
|
]
|
252
263
|
end
|
@@ -395,6 +406,26 @@ module Fastlane
|
|
395
406
|
|
396
407
|
run
|
397
408
|
end
|
409
|
+
def self.get_run_url_from_arn(arn)
|
410
|
+
project_id = get_project_id_from_arn arn
|
411
|
+
run_id = get_run_id_from_arn arn
|
412
|
+
region_id = get_region_from_arn arn
|
413
|
+
"https://#{region_id}.console.aws.amazon.com/devicefarm/home?region=#{region_id}#/projects/#{project_id}/runs/#{run_id}"
|
414
|
+
end
|
415
|
+
def self.get_project_id_from_arn(arn)
|
416
|
+
project_run_id = split_run_arn arn
|
417
|
+
project_run_id[0]
|
418
|
+
end
|
419
|
+
def self.get_run_id_from_arn(arn)
|
420
|
+
project_run_id = split_run_arn arn
|
421
|
+
project_run_id[1]
|
422
|
+
end
|
423
|
+
def self.get_region_from_arn(arn)
|
424
|
+
arn.split(':')[3]
|
425
|
+
end
|
426
|
+
def self.split_run_arn(arn)
|
427
|
+
arn.split(':')[6].split('/')
|
428
|
+
end
|
398
429
|
end
|
399
430
|
end
|
400
431
|
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.
|
4
|
+
version: 0.3.9.pre.alpha.pre.83
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Helmut Januschka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-20 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: 1.3.1
|
142
142
|
requirements: []
|
143
|
-
|
144
|
-
rubygems_version: 2.7.2
|
143
|
+
rubygems_version: 3.0.3
|
145
144
|
signing_key:
|
146
145
|
specification_version: 4
|
147
146
|
summary: Run UI Tests on AWS Devicefarm
|