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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 327211698be1985e99058dfac9cd9183474bdc4d
4
- data.tar.gz: a0f4f09baddffe3eecd9a9ad2ed4916b46cba81e
3
+ metadata.gz: cc7044184679f044b55bccbd86dea22472e54d3f
4
+ data.tar.gz: 122525ac8fe2e14d219e1f3e969cfdb3a8389b59
5
5
  SHA512:
6
- metadata.gz: c2dc29f94ae4125bee6e4646ed75011ff234da77168640e40a99c8b725fd7f8810c921fe123d475762897197d9b7331d13a07d47e53451d0990bf006ca942d2f
7
- data.tar.gz: fc9c3425d1466d607beaa0cea16cc4ea8f58a0691e97aef93c384f23b9429e43d0c501b8175580ac7dd8ed9102588157e2751cd3770beb96a8690718565664db
6
+ metadata.gz: 042a666fc07972b11574242f13e081f97a7a430f26e9450c25347a0b9045b57f5b227dabf3bd3d2c5a3f544af50e399e6184099ba38264822737efd54607e4a1
7
+ data.tar.gz: b9500c2bff1ec0fc75137991b9952eb9360f952d4f5291efb7d9c2d1e2aef73d31a39eb3b19689fa18e76be3134ce50cbb2692559be60cb7b6a5f8fe0c89d4f0
@@ -1,4 +1,4 @@
1
- # For more information about this configuation visit
1
+ # For more information about this configuration visit
2
2
  # https://github.com/fastlane/scan#scanfile
3
3
 
4
4
  # In general, you can use the options available
@@ -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 = "-f `xcpretty-travis-formatter`"
65
+ formatter << "-f `xcpretty-travis-formatter`"
65
66
  Helper.log.info "Automatically switched to Travis formatter".green
66
67
  end
67
68
 
68
- ["| tee '#{xcodebuild_log_path}' | xcpretty #{formatter}"]
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
@@ -1,4 +1,4 @@
1
1
  module Scan
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  DESCRIPTION = "Making sure no bad code gets on board"
4
4
  end
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.2.1
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-10-30 00:00:00.000000000 Z
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.8
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