fastlane-plugin-aws_device_farm 0.1.6.pre.alpha.pre.22 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -4
- data/lib/fastlane/plugin/aws_device_farm/actions/aws_device_farm_action.rb +3 -11
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82e3e0a28555df98e9671f372315cb49255c7f70
|
4
|
+
data.tar.gz: 2b182346a8ce61b0edd1ac651b25803761a9a642
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f0c6438306feaf2bc231868735ef7e0d33ea91d011f5f3528eb87f7a7f7433e40925b4226641711cd649c4930e9c73544e143e3417e366bd7bb566100b334a8
|
7
|
+
data.tar.gz: 8ad94a48bb9072cd636c60cc92d5f69a2c80dbf3d6e79192406de69fc6956122723374f2121f65ded958fce5550fec1974209d39276a9973f1f6de18580432e6
|
data/README.md
CHANGED
@@ -40,14 +40,13 @@ lane :aws_device_run_ios do
|
|
40
40
|
xcodebuild(
|
41
41
|
scheme: 'UITests',
|
42
42
|
destination: 'generic/platform=iOS',
|
43
|
-
configuration: '
|
43
|
+
configuration: 'Development',
|
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"
|
50
|
-
configuration: "Release"
|
49
|
+
derrived_data_path: "aws"
|
51
50
|
)
|
52
51
|
# RUN tests on AWS Device Farm
|
53
52
|
aws_device_farm
|
@@ -94,7 +93,6 @@ end
|
|
94
93
|
| Option | Default | Description | Type |
|
95
94
|
|---|---|---|---|
|
96
95
|
| 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 |
|
98
96
|
|
99
97
|
|
100
98
|
|
@@ -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
|
56
|
+
run = schedule_run project, device_pool, upload, test_upload, type
|
57
57
|
|
58
58
|
# Wait for run to finish.
|
59
59
|
if params[:wait_for_completion]
|
@@ -89,13 +89,6 @@ 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
|
-
),
|
99
92
|
FastlaneCore::ConfigItem.new(
|
100
93
|
key: :binary_path,
|
101
94
|
env_name: 'FL_AWS_DEVICE_FARM_PATH',
|
@@ -180,7 +173,7 @@ module Fastlane
|
|
180
173
|
def self.upload(upload, path)
|
181
174
|
url = URI.parse(upload.url)
|
182
175
|
contents = File.open(path, 'rb').read
|
183
|
-
Net::HTTP.
|
176
|
+
Net::HTTP.start(url.host) do |http|
|
184
177
|
http.send_request("PUT", url.request_uri, contents, { 'content-type' => 'application/octet-stream' })
|
185
178
|
end
|
186
179
|
end
|
@@ -208,7 +201,7 @@ module Fastlane
|
|
208
201
|
device_pools.device_pools.detect { |p| p.name == device_pool }
|
209
202
|
end
|
210
203
|
|
211
|
-
def self.schedule_run(
|
204
|
+
def self.schedule_run(project, device_pool, upload, test_upload, type)
|
212
205
|
# Prepare the test hash depening if you passed the test apk.
|
213
206
|
test_hash = { type: 'BUILTIN_FUZZ' }
|
214
207
|
if test_upload
|
@@ -220,7 +213,6 @@ module Fastlane
|
|
220
213
|
end
|
221
214
|
|
222
215
|
@client.schedule_run({
|
223
|
-
name: name,
|
224
216
|
project_arn: project.arn,
|
225
217
|
app_arn: upload.arn,
|
226
218
|
device_pool_arn: device_pool.arn,
|
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.6
|
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
|
+
date: 2016-11-24 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:
|
141
|
+
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.
|
144
|
+
rubygems_version: 2.6.8
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Run UI Tests on AWS Devicefarm
|