fastlane-plugin-aws_device_farm 0.3.0 → 0.3.1.pre.alpha.pre.45
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 495e178281da9643b4786055ae0da42b1d5438b7
|
4
|
+
data.tar.gz: e0f72f866f1bc1ab8fd5aa4c72f33e983c51afd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c3bb22a715765aa7a9b395c2dd3ef784fd7b07a308ab600c2b42cf9d23ae85cdce88a94aa70d7615c3b89157ba8325ef028c2aeb71ffff074602cf4a5e6f58b
|
7
|
+
data.tar.gz: f622289fb7d0fb90cc41ab704954a76ef34f20940e061aba7d93628dd75526c051d5dc2df829d4dfe923b2f983c3e5c983f4f4782f7f97068d9571d01eb4d900
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# AWS Device Farm Plugin for Fastlane
|
2
2
|
|
3
|
-
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-
|
3
|
+
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-aws_device_farm)
|
4
4
|
|
5
5
|
|
6
6
|
## About
|
7
|
-
> This Plugin
|
7
|
+
> This Plugin allows tests run on AWS device Farm
|
8
8
|
|
9
9
|
|
10
10
|
| iOS | Android | Fail |
|
@@ -74,6 +74,10 @@ lane :aws_device_run_android do
|
|
74
74
|
end
|
75
75
|
```
|
76
76
|
|
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`
|
80
|
+
|
77
81
|
## Options
|
78
82
|
|
79
83
|
* **aws_device_farm**
|
@@ -82,11 +86,15 @@ end
|
|
82
86
|
|---|---|---|---|
|
83
87
|
| name | fastlane | AWS Device Farm Project Name | String |
|
84
88
|
| binary_path | | Path to App Binary | String |
|
85
|
-
| test_binary_path | | Path to
|
89
|
+
| test_binary_path | | Path to test bundle | String |
|
90
|
+
| test_package_type | | Type of test package | String |
|
91
|
+
| test_type | | Type of test | String |
|
86
92
|
| device_pool | IOS | AWS Device Farm Device Pool | String |
|
87
93
|
| wait_for_completion | true | Wait for Test-Run to be completed | Boolean |
|
88
94
|
| allow_device_errors | false | Do you want to allow device booting errors? | Boolean |
|
95
|
+
| allow_failed_tests | false | Do you want to allow failing tests? | Boolean |
|
89
96
|
|
97
|
+
Possible types see: http://docs.aws.amazon.com/sdkforruby/api/Aws/DeviceFarm/Client.html#create_upload-instance_method
|
90
98
|
|
91
99
|
* **aws_device_farm_package**
|
92
100
|
|
@@ -59,20 +59,24 @@ module Fastlane
|
|
59
59
|
run = schedule_run params[:run_name], project, device_pool, upload, test_upload, type, params
|
60
60
|
|
61
61
|
# Wait for run to finish.
|
62
|
+
# rubocop:disable Metrics/BlockNesting
|
62
63
|
if params[:wait_for_completion]
|
63
64
|
UI.message 'Waiting for the run to complete. ☕️'
|
64
|
-
run = wait_for_run run
|
65
|
-
if params[:
|
66
|
-
|
67
|
-
|
68
|
-
|
65
|
+
run = wait_for_run project, run
|
66
|
+
if params[:allow_failed_tests] == false
|
67
|
+
if params[:allow_device_errors] == true
|
68
|
+
raise "#{run.message} Failed 🙈" unless %w[PASSED WARNED ERRORED].include? run.result
|
69
|
+
else
|
70
|
+
raise "#{run.message} Failed 🙈" unless %w[PASSED WARNED].include? run.result
|
71
|
+
end
|
69
72
|
end
|
70
73
|
UI.message 'Successfully tested the application on the AWS device farm. ✅'.green
|
71
74
|
else
|
72
75
|
UI.message 'Successfully scheduled the tests on the AWS device farm. ✅'.green
|
73
76
|
end
|
74
77
|
end
|
75
|
-
|
78
|
+
# rubocop:enable Metrics/BlockNesting
|
79
|
+
#
|
76
80
|
#####################################################
|
77
81
|
# @!group Documentation
|
78
82
|
#####################################################
|
@@ -202,6 +206,14 @@ module Fastlane
|
|
202
206
|
is_string: false,
|
203
207
|
optional: true,
|
204
208
|
default_value: false
|
209
|
+
),
|
210
|
+
FastlaneCore::ConfigItem.new(
|
211
|
+
key: :allow_failed_tests,
|
212
|
+
env_name: 'FL_AWS_DEVICE_FARM_ALLOW_FAILED_TESTS',
|
213
|
+
description: 'Do you want to allow failing tests?',
|
214
|
+
is_string: false,
|
215
|
+
optional: true,
|
216
|
+
default_value: false
|
205
217
|
)
|
206
218
|
]
|
207
219
|
end
|
@@ -299,7 +311,7 @@ module Fastlane
|
|
299
311
|
}).run
|
300
312
|
end
|
301
313
|
|
302
|
-
def self.wait_for_run(run)
|
314
|
+
def self.wait_for_run(project, run)
|
303
315
|
while run.status != 'COMPLETED'
|
304
316
|
sleep POLLING_INTERVAL
|
305
317
|
run = fetch_run_status run
|
@@ -307,9 +319,14 @@ module Fastlane
|
|
307
319
|
UI.message "The run ended with result #{run.result}."
|
308
320
|
UI.important "Minutes Counted: #{run.device_minutes.total}"
|
309
321
|
|
322
|
+
UI.verbose "RUN ARN: #{run.arn}."
|
323
|
+
ENV["AWS_DEVICE_FARM_RUN_ARN"] = run.arn
|
324
|
+
UI.verbose "PROJECT ARN: #{project.arn}."
|
325
|
+
ENV["AWS_DEVICE_FARM_PROJECT_ARN"] = project.arn
|
326
|
+
|
310
327
|
job = @client.list_jobs({
|
311
|
-
|
312
|
-
|
328
|
+
arn: run.arn
|
329
|
+
})
|
313
330
|
|
314
331
|
rows = []
|
315
332
|
job.jobs.each do |j|
|
metadata
CHANGED
@@ -1,111 +1,111 @@
|
|
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.1.pre.alpha.pre.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Helmut Januschka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: fastlane
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 1.105.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 1.105.0
|
111
111
|
description:
|
@@ -114,13 +114,13 @@ executables: []
|
|
114
114
|
extensions: []
|
115
115
|
extra_rdoc_files: []
|
116
116
|
files:
|
117
|
+
- LICENSE
|
118
|
+
- README.md
|
119
|
+
- lib/fastlane/plugin/aws_device_farm.rb
|
117
120
|
- lib/fastlane/plugin/aws_device_farm/actions/aws_device_farm_action.rb
|
118
121
|
- lib/fastlane/plugin/aws_device_farm/actions/aws_device_farm_package.rb
|
119
122
|
- lib/fastlane/plugin/aws_device_farm/helper/aws_device_farm_helper.rb
|
120
123
|
- lib/fastlane/plugin/aws_device_farm/version.rb
|
121
|
-
- lib/fastlane/plugin/aws_device_farm.rb
|
122
|
-
- README.md
|
123
|
-
- LICENSE
|
124
124
|
homepage: https://github.com/hjanuschka/fastlane-plugin-aws_device_farm
|
125
125
|
licenses:
|
126
126
|
- MIT
|
@@ -131,17 +131,17 @@ require_paths:
|
|
131
131
|
- lib
|
132
132
|
required_ruby_version: !ruby/object:Gem::Requirement
|
133
133
|
requirements:
|
134
|
-
- -
|
134
|
+
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
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
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.
|
144
|
+
rubygems_version: 2.6.12
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Run UI Tests on AWS Devicefarm
|