fastlane-plugin-maestro 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ddf938129d4e0385bc14555c532053b5e736a27fc2082da740ea727a1313d3f
|
4
|
+
data.tar.gz: a05a596cad7786aa095f7464dfe820300e72a74df3e75b187376cb7e4009bbef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 272b6143ae66f487269004a2cdf2441bbd7c9a40490210e93cc48840f193a08523c0eaad987bff9714930ec4528e0036489e47933c416a59d05a047e2848880d
|
7
|
+
data.tar.gz: 2d4c37eea7e99f172f50f0b49c63d4d487133721c6ab3b8e9d11389751b3c7fc4a6561971ef2c94ae3cbc0055e39124ec13e4c78cf33631e12f2852ff5b97259
|
data/README.md
CHANGED
@@ -27,7 +27,8 @@ module Fastlane
|
|
27
27
|
|
28
28
|
def self.check_ios_dependencies!
|
29
29
|
UI.message("Making sure you installed the dependencies to run Maestro…")
|
30
|
-
|
30
|
+
|
31
|
+
return if Maestro::Runner.command?("idb_companion")
|
31
32
|
|
32
33
|
UI.error("You have to install idb companion to use `maestro` with iOS simulators")
|
33
34
|
UI.error("")
|
@@ -37,7 +38,7 @@ module Fastlane
|
|
37
38
|
|
38
39
|
UI.error("If you don't have homebrew, visit https://github.com/facebook/idb")
|
39
40
|
|
40
|
-
UI.user_error!("
|
41
|
+
UI.user_error!("Please install idb companion and start your lane again.")
|
41
42
|
end
|
42
43
|
|
43
44
|
def self.description
|
@@ -98,7 +99,12 @@ module Fastlane
|
|
98
99
|
verify_block: proc do |value|
|
99
100
|
v = File.expand_path(value.to_s)
|
100
101
|
UI.user_error!("No file or directory found with path '#{v}'") unless File.exist?(v)
|
101
|
-
end)
|
102
|
+
end),
|
103
|
+
FastlaneCore::ConfigItem.new(key: :env_vars,
|
104
|
+
env_name: 'FL_MAESTRO_ENV_VARIABLES',
|
105
|
+
description: 'Allows to pass variables that the flow(s) might be using',
|
106
|
+
optional: true,
|
107
|
+
type: Hash)
|
102
108
|
]
|
103
109
|
end
|
104
110
|
|
@@ -25,12 +25,19 @@ module Fastlane
|
|
25
25
|
# Make sure that the output folder is available
|
26
26
|
FileUtils.mkdir_p(File.dirname(options[:output]))
|
27
27
|
end
|
28
|
+
unless options[:env_vars].empty? || options[:env_vars].nil?
|
29
|
+
options[:env_vars].each do |key, value|
|
30
|
+
command.push("-e", "#{key}=#{value}")
|
31
|
+
end
|
32
|
+
end
|
28
33
|
|
29
34
|
command.push("#{options[:tests]}")
|
30
35
|
command_string = command.join(" ")
|
31
36
|
UI.message("Running command: #{command_string}")
|
32
|
-
|
33
|
-
|
37
|
+
Dir.chdir(ENV["PWD"]) do
|
38
|
+
# TODO: set exception based on parameter `failRun`
|
39
|
+
system(command_string, out: $stdout, err: :out, exception: true)
|
40
|
+
end
|
34
41
|
end
|
35
42
|
|
36
43
|
def self.install
|
@@ -39,7 +46,14 @@ module Fastlane
|
|
39
46
|
|
40
47
|
def self.download_samples
|
41
48
|
maestro_path = ENV["HOME"] + "/.maestro/bin/maestro"
|
42
|
-
|
49
|
+
Dir.chdir(ENV["PWD"]) do
|
50
|
+
system("#{maestro_path} download-samples", out: $stdout, err: :out, exception: true)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.command?(name)
|
55
|
+
`which #{name}`
|
56
|
+
$?.success?
|
43
57
|
end
|
44
58
|
end
|
45
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-maestro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc Bormeth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|