scan 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scan/options.rb +5 -1
- data/lib/scan/report_collector.rb +4 -1
- data/lib/scan/runner.rb +12 -3
- data/lib/scan/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce3230ac62fce3ee36f1d2d753c9787521d4905f
|
4
|
+
data.tar.gz: 2a616132ab8a597c18ab958dc29cfd3b0557db26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e07a981114c02011dfb80cc06b2f73326e35fc17c19c54148b9f04a6f29f44122dc7ebb328ed552fc656c95537359beb7232bde5c3f14ac6102f682101ccbab8
|
7
|
+
data.tar.gz: 255109d09ef5a84fcedcbaa12d31f659da63979aba9fbb26aac3fa93469e406117c2add3c0988fa32043cc6a40a909a421b52bd1fdd199030a38c88a486cf36e
|
data/lib/scan/options.rb
CHANGED
@@ -177,7 +177,11 @@ module Scan
|
|
177
177
|
FastlaneCore::ConfigItem.new(key: :use_clang_report_name,
|
178
178
|
description: "Generate the json compilation database with clang naming convention (compile_commands.json)",
|
179
179
|
is_string: false,
|
180
|
-
default_value: false)
|
180
|
+
default_value: false),
|
181
|
+
FastlaneCore::ConfigItem.new(key: :custom_report_file_name,
|
182
|
+
description: "Sets custom full report file name",
|
183
|
+
optional: true,
|
184
|
+
is_string: true)
|
181
185
|
]
|
182
186
|
end
|
183
187
|
end
|
@@ -3,11 +3,12 @@ module Scan
|
|
3
3
|
SUPPORTED = %w(html junit json-compilation-database)
|
4
4
|
|
5
5
|
# Intialize with values from Scan.config matching these param names
|
6
|
-
def initialize(open_report, output_types, output_directory, use_clang_report_name)
|
6
|
+
def initialize(open_report, output_types, output_directory, use_clang_report_name, custom_report_file_name = nil)
|
7
7
|
@open_report = open_report
|
8
8
|
@output_types = output_types
|
9
9
|
@output_directory = output_directory
|
10
10
|
@use_clang_report_name = use_clang_report_name
|
11
|
+
@custom_report_file_name = custom_report_file_name
|
11
12
|
end
|
12
13
|
|
13
14
|
def parse_raw_file(path)
|
@@ -56,6 +57,8 @@ module Scan
|
|
56
57
|
def determine_output_file_name(type)
|
57
58
|
if @use_clang_report_name && type == "json-compilation-database"
|
58
59
|
"compile_commands.json"
|
60
|
+
elsif !@custom_report_file_name.nil?
|
61
|
+
@custom_report_file_name
|
59
62
|
else
|
60
63
|
"report.#{type}"
|
61
64
|
end
|
data/lib/scan/runner.rb
CHANGED
@@ -54,7 +54,8 @@ module Scan
|
|
54
54
|
report_collector = ReportCollector.new(Scan.config[:open_report],
|
55
55
|
Scan.config[:output_types],
|
56
56
|
Scan.config[:output_directory],
|
57
|
-
Scan.config[:use_clang_report_name]
|
57
|
+
Scan.config[:use_clang_report_name],
|
58
|
+
Scan.config[:custom_report_file_name])
|
58
59
|
|
59
60
|
cmd = report_collector.generate_commands(TestCommandGenerator.xcodebuild_log_path,
|
60
61
|
types: 'junit',
|
@@ -91,8 +92,16 @@ module Scan
|
|
91
92
|
UI.message("Killing all running simulators")
|
92
93
|
`killall Simulator &> /dev/null`
|
93
94
|
|
94
|
-
|
95
|
-
|
95
|
+
# As a second level of feature switching, see if we want to try the xcode-select variant
|
96
|
+
if ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR'] == '2'
|
97
|
+
simulator_path = File.join(FastlaneCore::Helper.xcode_path, 'Applications', 'Simulator.app')
|
98
|
+
UI.message("Explicitly opening simulator at #{simulator_path} for device: #{device.name}")
|
99
|
+
else
|
100
|
+
simulator_path = 'Simulator'
|
101
|
+
UI.message("Explicitly opening simulator for device: #{device.name}")
|
102
|
+
end
|
103
|
+
|
104
|
+
`open -a #{simulator_path} --args -CurrentDeviceUDID #{device.udid}`
|
96
105
|
end
|
97
106
|
end
|
98
107
|
end
|
data/lib/scan/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
270
|
version: '0'
|
271
271
|
requirements: []
|
272
272
|
rubyforge_project:
|
273
|
-
rubygems_version: 2.
|
273
|
+
rubygems_version: 2.4.5.1
|
274
274
|
signing_key:
|
275
275
|
specification_version: 4
|
276
276
|
summary: The easiest way to run tests of your iOS and Mac app
|