fastlane-plugin-aws_device_farm 0.1.6 → 0.1.7.pre.alpha.pre.23

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: 82e3e0a28555df98e9671f372315cb49255c7f70
4
- data.tar.gz: 2b182346a8ce61b0edd1ac651b25803761a9a642
3
+ metadata.gz: f736a13d6c56f280c011c332c21800cebd5328b1
4
+ data.tar.gz: 97194ccc42193bb004f99670a2f9e7aa465a8aae
5
5
  SHA512:
6
- metadata.gz: 2f0c6438306feaf2bc231868735ef7e0d33ea91d011f5f3528eb87f7a7f7433e40925b4226641711cd649c4930e9c73544e143e3417e366bd7bb566100b334a8
7
- data.tar.gz: 8ad94a48bb9072cd636c60cc92d5f69a2c80dbf3d6e79192406de69fc6956122723374f2121f65ded958fce5550fec1974209d39276a9973f1f6de18580432e6
6
+ metadata.gz: 24f0daca64fbbfb2de4825b4a2cdfa18f0069fd8f1c1459b8828665c27fc9f3778d531ecf898197d9447b0f5af0c00e8370f4a60aa7515518cca241ed809b086
7
+ data.tar.gz: 135533d9482976bf32de65ebfde6b49f3e08cb997d2b4ca0f7408d2bc95273fbc440dad8eee57a0ea48562d6bd3c2788f9f49d23f3dc20c86e08b597e4e01699
data/README.md CHANGED
@@ -40,13 +40,14 @@ lane :aws_device_run_ios do
40
40
  xcodebuild(
41
41
  scheme: 'UITests',
42
42
  destination: 'generic/platform=iOS',
43
- configuration: 'Development',
43
+ configuration: 'Release',
44
44
  derivedDataPath: 'aws',
45
45
  xcargs: "GCC_PREPROCESSOR_DEFINITIONS='AWS_UI_TEST' ENABLE_BITCODE=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO build-for-testing"
46
46
  )
47
47
  # Transform .app into AWS compatible IPA
48
48
  aws_device_farm_package(
49
- derrived_data_path: "aws"
49
+ derrived_data_path: "aws",
50
+ configuration: "Release"
50
51
  )
51
52
  # RUN tests on AWS Device Farm
52
53
  aws_device_farm
@@ -93,6 +94,7 @@ end
93
94
  | Option | Default | Description | Type |
94
95
  |---|---|---|---|
95
96
  | derrived_data_path | | Derrived Data Path, containing a `build-for-testing` derrived-data folder | String |
97
+ | derrived_data_path | Development | Specify the Build-Configuration that was used e.g.: Development | String |
96
98
 
97
99
 
98
100
 
@@ -53,7 +53,7 @@ module Fastlane
53
53
  raise 'Binary upload failed. 🙈' unless upload.status == 'SUCCEEDED'
54
54
 
55
55
  # Schedule the run.
56
- run = schedule_run project, device_pool, upload, test_upload, type
56
+ run = schedule_run params[:run_name], project, device_pool, upload, test_upload, type
57
57
 
58
58
  # Wait for run to finish.
59
59
  if params[:wait_for_completion]
@@ -89,6 +89,13 @@ module Fastlane
89
89
  default_value: 'fastlane',
90
90
  optional: false
91
91
  ),
92
+ FastlaneCore::ConfigItem.new(
93
+ key: :run_name,
94
+ env_name: 'FL_AWS_DEVICE_FARM_RUN_NAME',
95
+ description: 'Define the name of the device farm run',
96
+ is_string: true,
97
+ optional: true
98
+ ),
92
99
  FastlaneCore::ConfigItem.new(
93
100
  key: :binary_path,
94
101
  env_name: 'FL_AWS_DEVICE_FARM_PATH',
@@ -173,7 +180,7 @@ module Fastlane
173
180
  def self.upload(upload, path)
174
181
  url = URI.parse(upload.url)
175
182
  contents = File.open(path, 'rb').read
176
- Net::HTTP.start(url.host) do |http|
183
+ Net::HTTP.new(url.host).start do |http|
177
184
  http.send_request("PUT", url.request_uri, contents, { 'content-type' => 'application/octet-stream' })
178
185
  end
179
186
  end
@@ -201,7 +208,7 @@ module Fastlane
201
208
  device_pools.device_pools.detect { |p| p.name == device_pool }
202
209
  end
203
210
 
204
- def self.schedule_run(project, device_pool, upload, test_upload, type)
211
+ def self.schedule_run(name, project, device_pool, upload, test_upload, type)
205
212
  # Prepare the test hash depening if you passed the test apk.
206
213
  test_hash = { type: 'BUILTIN_FUZZ' }
207
214
  if test_upload
@@ -213,6 +220,7 @@ module Fastlane
213
220
  end
214
221
 
215
222
  @client.schedule_run({
223
+ name: name,
216
224
  project_arn: project.arn,
217
225
  app_arn: upload.arn,
218
226
  device_pool_arn: device_pool.arn,
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AwsDeviceFarm
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
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.1.6
4
+ version: 0.1.7.pre.alpha.pre.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helmut Januschka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-24 00:00:00.000000000 Z
11
+ date: 2016-12-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.4.8
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Run UI Tests on AWS Devicefarm