fastlane-plugin-automated_test_emulator_run 1.0.0 → 1.1.0
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: 2beefd49270a753e5f5c58913fb0d613d8674846
|
4
|
+
data.tar.gz: 27d9e176b1f2304c23c410b761b9e3bc442ea629
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80ed06b2e25dd8395e09612a6d5e4af7e9b357e5d6c237352caa665af9fc9c780e85a3b7dcb36fdd1b21be62e9a7781082bd2f21f685482ea3a4b1a504f60c7c
|
7
|
+
data.tar.gz: 5e4d0f8e600d05dadcd96bbcec08339cbc8222fd36fb287cff949f36ee97017001726506ace3f0ff0090bc176f4b36e8de33421587b84ecaa5ec45d8da1ebd31
|
data/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb
CHANGED
@@ -85,7 +85,8 @@ module Fastlane
|
|
85
85
|
UI.message("Performing wait for params: dev.bootcomplete, sys.boot_completed, init.svc.bootanim".yellow)
|
86
86
|
for i in 0..(avd_schemes.length - 1)
|
87
87
|
avd_controller = avd_controllers[i]
|
88
|
-
|
88
|
+
timeout = "#{params[:AVD_launch_timeout]}"
|
89
|
+
status = wait_for_emulator_boot(adb_controller, avd_controller, timeout)
|
89
90
|
|
90
91
|
if (!status)
|
91
92
|
all_avd_launched = false
|
@@ -147,8 +148,8 @@ module Fastlane
|
|
147
148
|
|
148
149
|
end
|
149
150
|
|
150
|
-
def self.wait_for_emulator_boot(adb_controller, avd_controller)
|
151
|
-
timeoutInSeconds=
|
151
|
+
def self.wait_for_emulator_boot(adb_controller, avd_controller, timeout)
|
152
|
+
timeoutInSeconds= timeout.to_i
|
152
153
|
startTime = Time.now
|
153
154
|
|
154
155
|
launch_status = false
|
@@ -159,7 +160,7 @@ module Fastlane
|
|
159
160
|
currentTime = Time.now
|
160
161
|
|
161
162
|
if (currentTime - startTime) >= timeoutInSeconds
|
162
|
-
UI.message("AVD loading took more than
|
163
|
+
UI.message("AVD loading took more than 10 minutes. Restarting launch".red)
|
163
164
|
launch_status = false
|
164
165
|
break
|
165
166
|
end
|
@@ -192,6 +193,12 @@ module Fastlane
|
|
192
193
|
is_string: true,
|
193
194
|
default_value: ENV['ANDROID_HOME'],
|
194
195
|
optional: true),
|
196
|
+
FastlaneCore::ConfigItem.new(key: :AVD_launch_timeout,
|
197
|
+
env_name: "AVD_LAUNCH_TIMEOUT",
|
198
|
+
description: "Timeout in seconds - after what time should plugin attempt to re-launch AVD setup. Default 600 seconds",
|
199
|
+
is_string: true,
|
200
|
+
default_value: 600,
|
201
|
+
optional: true),
|
195
202
|
|
196
203
|
|
197
204
|
#launch commands
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-automated_test_emulator_run
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Krzyk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|