scan 0.4.1 → 0.4.2

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
  SHA1:
3
- metadata.gz: 533ce99c41f14c934f7bb3d544575cf113462fd3
4
- data.tar.gz: bbe83676310a88b0e61a1b69cc152ce13e975aee
3
+ metadata.gz: 87e6b6cd3aaf7c5ef8c91517e55a28fbd812ce3a
4
+ data.tar.gz: 4e96eee5c095f22acf1bb02eeadf99b727c146c6
5
5
  SHA512:
6
- metadata.gz: af7be52af7e0d12dc253e7ed1ca1234be0001ac825d86a1d6380f2fc9a4a3a5df5553e87fa1c0731c127f8ea8df13ead94b8f05ece0f5da0471edd3167ce1e77
7
- data.tar.gz: 37ebc33597cadedd3ff96b52481f979022e48759ffbc4f3a79cc2f843d34e819c04ea7f9f587326a6f6442acf47b8f2724bd4453035d603b257da5938a7df0b1
6
+ metadata.gz: ba4238fc1a80a03faa45d2fb16d8d0afb4777d7ecec671880e34148d6984030299fc3114f7754890b17e333ed77a8549a7e289982fb6bf43690c344083d54096
7
+ data.tar.gz: 12712852d84ef344b292e4d11e9d0e226c23426fb9f09ffaeaca0deddd17824e47800a46892de4d1f93c987dd2807f5905f85f529874748d1df70542bfc3f77d
data/lib/scan/options.rb CHANGED
@@ -73,6 +73,17 @@ module Scan
73
73
  env_name: "SCAN_BUILDLOG_PATH",
74
74
  description: "The directory were to store the raw log",
75
75
  default_value: "~/Library/Logs/scan"),
76
+ FastlaneCore::ConfigItem.new(key: :derived_data_path,
77
+ short_option: "-j",
78
+ env_name: "SCAN_DERIVED_DATA_PATH",
79
+ description: "The directory where build products and other derived data will go",
80
+ optional: true),
81
+ FastlaneCore::ConfigItem.new(key: :result_bundle,
82
+ short_option: "-z",
83
+ env_name: "SCAN_RESULT_BUNDLE",
84
+ is_string: false,
85
+ description: "Produce the result bundle describing what occurred will be placed",
86
+ optional: true),
76
87
  FastlaneCore::ConfigItem.new(key: :sdk,
77
88
  short_option: "-k",
78
89
  env_name: "SCAN_SDK",
@@ -34,6 +34,8 @@ 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 << "-derivedDataPath '#{config[:derived_data_path]}'" if config[:derived_data_path]
38
+ options << "-resultBundlePath '#{result_bundle_path}'" if config[:result_bundle]
37
39
  options << "-enableCodeCoverage YES" if config[:code_coverage]
38
40
  options << "-xcconfig '#{config[:xcconfig]}'" if config[:xcconfig]
39
41
  options << config[:xcargs] if config[:xcargs]
@@ -100,6 +102,13 @@ module Scan
100
102
  end
101
103
  Scan.cache[:build_path]
102
104
  end
105
+
106
+ def result_bundle_path
107
+ unless Scan.cache[:result_bundle_path]
108
+ Scan.cache[:result_bundle_path] = File.join(Scan.config[:output_directory], Scan.config[:scheme]) + ".test_result"
109
+ end
110
+ return Scan.cache[:result_bundle_path]
111
+ end
103
112
  end
104
113
  end
105
114
  end
@@ -2,7 +2,7 @@ module Scan
2
2
  class TestResultParser
3
3
  def parse_result(output)
4
4
  # e.g. ...<testsuites tests='2' failures='1'>...
5
- matched = output.match(/\<testsuites tests='(\d+)' failures='(\d+)'\>/)
5
+ matched = output.match(%r{\<testsuites tests='(\d+)' failures='(\d+)'/?\>})
6
6
 
7
7
  if matched and matched.length == 3
8
8
  tests = matched[1].to_i
data/lib/scan/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Scan
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
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.4.1
4
+ version: 0.4.2
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-01-12 00:00:00.000000000 Z
11
+ date: 2016-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -132,16 +132,16 @@ dependencies:
132
132
  name: rubocop
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - ">="
135
+ - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '0'
137
+ version: 0.35.1
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - ">="
142
+ - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '0'
144
+ version: 0.35.1
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: rspec
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -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.0
259
+ rubygems_version: 2.2.2
260
260
  signing_key:
261
261
  specification_version: 4
262
262
  summary: Making sure no bad code gets on board