trainer 0.7.0 → 0.8.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: d71e5b5344f6357c4924b11e5b5e2ef3dfc33915
4
- data.tar.gz: 8b075857582e57527e5b65303f2fccbf44fc697b
3
+ metadata.gz: 8544de0b5aea45ffa6618117b83ef93a427abaef
4
+ data.tar.gz: b6b78f690a8b91862ee479a82ae55cd69608f59c
5
5
  SHA512:
6
- metadata.gz: 2acc8e3758326c387c9878f378cfbff73eacf7351cc1ef1b31650bc4745569ad2f13bbf681f18a4612b0938c3be94f14f5979b25a2302818b7fd4370479bfa88
7
- data.tar.gz: 0dd06fc1aae95d5445c714b9f5d47ff29e00f3d1fd37fed0bb06f60cf71e563b7581f5d8bc223ab13f443ead89092d5ade300897f0d3e4aa9a0a6a4e0db090c2
6
+ metadata.gz: b94e49941d916e2fbbcdb03577f018abe33303eaf24d562b70e2e880b5c30f5c06d15c726275622b323b543fec10685fe74517e17f92425f1cd8fa40b873c393
7
+ data.tar.gz: 41001319d63f45c1411b2c1f6c97c5054a79bfa9c9595863099a86c334ca99c7348cbb7041a272d0e849117e478391f1a11472fc7da7a24954bfffeac05ff8c7
data/README.md CHANGED
@@ -12,7 +12,7 @@ Some Xcode versions has a known issue around not properly closing `stdout` ([Rad
12
12
 
13
13
  > By using `trainer`, the Twitter iOS code base now generates JUnit reports 10 times faster.
14
14
 
15
- | [xcpretty](https://github.com/supermarin/xcpretty) | trainer
15
+ | | [xcpretty](https://github.com/supermarin/xcpretty) | trainer
16
16
  --------------------------|------------------------------|------------------------------
17
17
  Prettify the `xcodebuild` output | :white_check_mark: | :no_entry_sign:
18
18
  Generate JUnit reports | :white_check_mark: | :white_check_mark:
@@ -28,7 +28,12 @@ module Trainer
28
28
  env_name: "TRAINER_OUTPUT_DIRECTORY",
29
29
  default_value: nil,
30
30
  optional: true,
31
- description: "Directoy in which the xml files should be written to. Same directory as source by default")
31
+ description: "Directoy in which the xml files should be written to. Same directory as source by default"),
32
+ FastlaneCore::ConfigItem.new(key: :fail_build,
33
+ env_name: "TRAINER_FAIL_BUILD",
34
+ description: "Should this step stop the build if the tests fail? Set this to false if you're handling this with a test reporter",
35
+ is_string: false,
36
+ default_value: true)
32
37
  ]
33
38
  end
34
39
  end
@@ -13,9 +13,14 @@ module Trainer
13
13
  title: "Summary for trainer #{Trainer::VERSION}")
14
14
 
15
15
  containing_dir = config[:path]
16
+ # Xcode < 10
16
17
  files = Dir["#{containing_dir}/**/Logs/Test/*TestSummaries.plist"]
17
18
  files += Dir["#{containing_dir}/Test/*TestSummaries.plist"]
18
19
  files += Dir["#{containing_dir}/*TestSummaries.plist"]
20
+ # Xcode 10
21
+ files += Dir["#{containing_dir}/**/Logs/Test/*.xcresult/TestSummaries.plist"]
22
+ files += Dir["#{containing_dir}/Test/*.xcresult/TestSummaries.plist"]
23
+ files += Dir["#{containing_dir}/*.xcresult/TestSummaries.plist"]
19
24
  files += Dir[containing_dir] if containing_dir.end_with?(".plist") # if it's the exact path to a plist file
20
25
 
21
26
  if files.empty?
@@ -1,4 +1,4 @@
1
1
  module Trainer
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  DESCRIPTION = "Convert xcodebuild plist files to JUnit reports"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trainer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.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: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2018-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plist
@@ -30,6 +30,20 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 4.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: fastlane
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 2.25.0
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.25.0
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: bundler
35
49
  requirement: !ruby/object:Gem::Requirement
@@ -100,20 +114,6 @@ dependencies:
100
114
  - - "~>"
101
115
  - !ruby/object:Gem::Version
102
116
  version: 0.38.0
103
- - !ruby/object:Gem::Dependency
104
- name: fastlane
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: 2.25.0
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: 2.25.0
117
117
  description: Convert xcodebuild plist files to JUnit reports
118
118
  email:
119
119
  - fastlane@krausefx.com
@@ -152,9 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.6.10
155
+ rubygems_version: 2.6.8
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Convert xcodebuild plist files to JUnit reports
159
159
  test_files: []
160
- has_rdoc: