scan 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assets/ScanfileTemplate +1 -1
- data/lib/scan/options.rb +12 -0
- data/lib/scan/test_command_generator.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: cc7044184679f044b55bccbd86dea22472e54d3f
|
4
|
+
data.tar.gz: 122525ac8fe2e14d219e1f3e969cfdb3a8389b59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 042a666fc07972b11574242f13e081f97a7a430f26e9450c25347a0b9045b57f5b227dabf3bd3d2c5a3f544af50e399e6184099ba38264822737efd54607e4a1
|
7
|
+
data.tar.gz: b9500c2bff1ec0fc75137991b9952eb9360f952d4f5291efb7d9c2d1e2aef73d31a39eb3b19689fa18e76be3134ce50cbb2692559be60cb7b6a5f8fe0c89d4f0
|
data/lib/assets/ScanfileTemplate
CHANGED
data/lib/scan/options.rb
CHANGED
@@ -44,11 +44,23 @@ module Scan
|
|
44
44
|
description: "Should the project be cleaned before building it?",
|
45
45
|
is_string: false,
|
46
46
|
default_value: false),
|
47
|
+
FastlaneCore::ConfigItem.new(key: :code_coverage,
|
48
|
+
description: "Should generate code coverage (Xcode 7 only)?",
|
49
|
+
is_string: false,
|
50
|
+
default_value: false),
|
47
51
|
FastlaneCore::ConfigItem.new(key: :output_directory,
|
48
52
|
short_option: "-o",
|
49
53
|
env_name: "SCAN_OUTPUT_DIRECTORY",
|
50
54
|
description: "The directory in which all reports will be stored",
|
51
55
|
default_value: "./test_output"),
|
56
|
+
FastlaneCore::ConfigItem.new(key: :output_style,
|
57
|
+
short_option: "-b",
|
58
|
+
env_name: "SCAN_OUTPUT_STYLE",
|
59
|
+
description: "Define how the output should look like (standard, basic or rspec)",
|
60
|
+
optional: true,
|
61
|
+
verify_block: proc do |value|
|
62
|
+
raise "Invalid output_style #{value}".red unless ['standard', 'basic', "rspec"].include?(value)
|
63
|
+
end),
|
52
64
|
FastlaneCore::ConfigItem.new(key: :output_types,
|
53
65
|
short_option: "-f",
|
54
66
|
env_name: "SCAN_OUTPUT_TYPES",
|
@@ -34,6 +34,7 @@ module Scan
|
|
34
34
|
options << "-configuration '#{config[:configuration]}'" if config[:configuration]
|
35
35
|
options << "-sdk '#{config[:sdk]}'" if config[:sdk]
|
36
36
|
options << "-destination '#{config[:destination]}'" # generated in `detect_values`
|
37
|
+
options << "-enableCodeCoverage YES" if config[:code_coverage]
|
37
38
|
options << "-xcconfig '#{config[:xcconfig]}'" if config[:xcconfig]
|
38
39
|
options << config[:xcargs] if config[:xcargs]
|
39
40
|
|
@@ -59,13 +60,21 @@ module Scan
|
|
59
60
|
def pipe
|
60
61
|
# During building we just show the output in the terminal
|
61
62
|
# Check out the ReportCollector class for more xcpretty things
|
62
|
-
formatter =
|
63
|
+
formatter = []
|
63
64
|
if Helper.ci?
|
64
|
-
formatter
|
65
|
+
formatter << "-f `xcpretty-travis-formatter`"
|
65
66
|
Helper.log.info "Automatically switched to Travis formatter".green
|
66
67
|
end
|
67
68
|
|
68
|
-
[
|
69
|
+
if Scan.config[:output_style] == 'basic'
|
70
|
+
formatter << "--no-utf"
|
71
|
+
end
|
72
|
+
|
73
|
+
if Scan.config[:output_style] == 'rspec'
|
74
|
+
formatter << "--test"
|
75
|
+
end
|
76
|
+
|
77
|
+
["| tee '#{xcodebuild_log_path}' | xcpretty #{formatter.join(' ')}"]
|
69
78
|
end
|
70
79
|
|
71
80
|
# Store the raw file
|
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.3.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: 2015-
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
256
|
version: '0'
|
257
257
|
requirements: []
|
258
258
|
rubyforge_project:
|
259
|
-
rubygems_version: 2.4.
|
259
|
+
rubygems_version: 2.4.0
|
260
260
|
signing_key:
|
261
261
|
specification_version: 4
|
262
262
|
summary: Making sure no bad code gets on board
|