fastlane-plugin-aws_device_farm 0.2.0 → 0.3.0.pre.alpha.pre.39

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: b1cacb7979a3e535319a9ab553f3a197e655194d
4
- data.tar.gz: 30241618463c0436cae053c74c3fe4a328200a12
3
+ metadata.gz: 767f3a6e86a9d74013e0f0f7ae5879f4db276ba2
4
+ data.tar.gz: 73237275d936ef6b27bf113b0ea2d03a39b581d9
5
5
  SHA512:
6
- metadata.gz: 7567a21a561ee1e23da5f2186801459b3d887993a24e9d460f67e40efa9b433dec3328e578a4fdea7b447c2dc6b93913cb01047b95bd0fbd32a9e9d8deaf7377
7
- data.tar.gz: aff5087e77a846b56c28a282dfb6063f080312738dbc87bca4df715e07f98cd6490e8a434164bebc2977db9ff899e4edb7cffa487178217b0450394c7eb59a12
6
+ metadata.gz: 6f547461d18203cfc9dcf7c2087a03fe28fe82a250f87c1995aeff46d271b345c70e6253fe7d3868a32d0a79a15ab557a08822cffb17d17f861f8fba2d949984
7
+ data.tar.gz: 05899b71158ff79a10076f5893b5337ecc35af3dd755e7dd1692f72030341822535a6ed6c8db2b8a35effd95af3f7e92859fb00adc2b3087f1b3ef9163f685ed
@@ -30,11 +30,14 @@ module Fastlane
30
30
  test_upload = nil
31
31
  if params[:test_binary_path]
32
32
  test_path = File.expand_path(params[:test_binary_path])
33
- if type == "ANDROID_APP"
34
- test_upload = create_project_upload project, test_path, 'INSTRUMENTATION_TEST_PACKAGE'
33
+ if params[:test_package_type]
34
+ test_upload = create_project_upload project, test_path, params[:test_package_type]
35
35
  else
36
-
37
- test_upload = create_project_upload project, test_path, 'XCTEST_UI_TEST_PACKAGE'
36
+ if type == "ANDROID_APP"
37
+ test_upload = create_project_upload project, test_path, 'INSTRUMENTATION_TEST_PACKAGE'
38
+ else
39
+ test_upload = create_project_upload project, test_path, 'XCTEST_UI_TEST_PACKAGE'
40
+ end
38
41
  end
39
42
 
40
43
  # Upload the test binary.
@@ -53,7 +56,7 @@ module Fastlane
53
56
  raise 'Binary upload failed. 🙈' unless upload.status == 'SUCCEEDED'
54
57
 
55
58
  # Schedule the run.
56
- run = schedule_run params[:run_name], project, device_pool, upload, test_upload, type
59
+ run = schedule_run params[:run_name], project, device_pool, upload, test_upload, type, params
57
60
 
58
61
  # Wait for run to finish.
59
62
  if params[:wait_for_completion]
@@ -112,13 +115,60 @@ module Fastlane
112
115
  FastlaneCore::ConfigItem.new(
113
116
  key: :test_binary_path,
114
117
  env_name: 'FL_AWS_DEVICE_FARM_TEST_PATH',
115
- description: 'Define the path of the test binary (apk) to upload to the device farm project',
118
+ description: 'Define the path of the test bundle to upload to the device farm project',
119
+ is_string: true,
120
+ optional: true,
121
+ verify_block: proc do |value|
122
+ raise "Test bundle not found at path '#{value}'. 🙈".red unless File.exist?(File.expand_path(value))
123
+ end
124
+ ),
125
+ FastlaneCore::ConfigItem.new(
126
+ key: :test_package_type,
127
+ env_name: 'FL_AWS_DEVICE_FARM_TEST_PACKAGE_TYPE',
128
+ description: 'Define the type of the test binary to upload to the device farm project',
129
+ is_string: true,
130
+ optional: true,
131
+ verify_block: proc do |value|
132
+ valid_values = ['APPIUM_JAVA_JUNIT_TEST_PACKAGE',
133
+ 'APPIUM_JAVA_TESTNG_TEST_PACKAGE',
134
+ 'APPIUM_PYTHON_TEST_PACKAGE',
135
+ 'APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE',
136
+ 'APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE',
137
+ 'APPIUM_WEB_PYTHON_TEST_PACKAGE',
138
+ 'CALABASH_TEST_PACKAGE',
139
+ 'INSTRUMENTATION_TEST_PACKAGE',
140
+ 'UIAUTOMATION_TEST_PACKAGE',
141
+ 'UIAUTOMATOR_TEST_PACKAGE',
142
+ 'XCTEST_TEST_PACKAGE',
143
+ 'XCTEST_UI_TEST_PACKAGE']
144
+ raise "Test package type not found valid values are: '#{valid_values}'. 🙈".red unless valid_values.include? value
145
+ end
146
+ ),
147
+ FastlaneCore::ConfigItem.new(
148
+ key: :test_type,
149
+ env_name: 'FL_AWS_DEVICE_FARM_TEST_TYPE',
150
+ description: 'Define the type of the test binary to upload to the device farm project',
116
151
  is_string: true,
117
152
  optional: true,
118
153
  verify_block: proc do |value|
119
- raise "Test binary not found at path '#{value}'. 🙈".red unless File.exist?(File.expand_path(value))
154
+ valid_values = ['UIAUTOMATOR',
155
+ 'APPIUM_WEB_PYTHON',
156
+ 'CALABASH',
157
+ 'APPIUM_JAVA_TESTNG',
158
+ 'UIAUTOMATION',
159
+ 'BUILTIN_FUZZ',
160
+ 'INSTRUMENTATION',
161
+ 'APPIUM_JAVA_JUNIT',
162
+ 'XCTEST_UI',
163
+ 'APPIUM_WEB_JAVA_JUNIT',
164
+ 'APPIUM_PYTHON',
165
+ 'BUILTIN_EXPLORER',
166
+ 'XCTEST',
167
+ 'APPIUM_WEB_JAVA_TESTNG']
168
+ raise "Test type not found valid values are: '#{valid_values}'. 🙈".red unless valid_values.include? value
120
169
  end
121
170
  ),
171
+
122
172
  FastlaneCore::ConfigItem.new(
123
173
  key: :path,
124
174
  env_name: 'FL_AWS_DEVICE_FARM_PATH',
@@ -218,14 +268,19 @@ module Fastlane
218
268
  device_pools.device_pools.detect { |p| p.name == device_pool }
219
269
  end
220
270
 
221
- def self.schedule_run(name, project, device_pool, upload, test_upload, type)
271
+ def self.schedule_run(name, project, device_pool, upload, test_upload, type, params)
222
272
  # Prepare the test hash depening if you passed the test apk.
223
273
  test_hash = { type: 'BUILTIN_FUZZ' }
224
274
  if test_upload
225
- test_hash[:type] = 'XCTEST_UI'
226
- if type == "ANDROID_APP"
227
- test_hash[:type] = 'INSTRUMENTATION'
275
+ if params[:test_type]
276
+ test_hash[:type] = params[:test_type]
277
+ else
278
+ test_hash[:type] = 'XCTEST_UI'
279
+ if type == "ANDROID_APP"
280
+ test_hash[:type] = 'INSTRUMENTATION'
281
+ end
228
282
  end
283
+
229
284
  test_hash[:test_package_arn] = test_upload.arn
230
285
  end
231
286
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AwsDeviceFarm
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  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.2.0
4
+ version: 0.3.0.pre.alpha.pre.39
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-05-24 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -136,12 +136,12 @@ 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: '0'
141
+ version: 1.3.1
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.6.8
144
+ rubygems_version: 2.6.12
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Run UI Tests on AWS Devicefarm