korinthenkacker 0.0.2 → 0.0.3

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: c8b03b372dfb50d7134c8f789c824613e22ab5fd
4
- data.tar.gz: 8613ab7127a2595676f1f6d25723f25f385518dc
3
+ metadata.gz: 9f2a98ed1dfe787edbff10e03b6c763187351eaa
4
+ data.tar.gz: 80c2b51f04f690c9fb5f0152a80a9715dac65659
5
5
  SHA512:
6
- metadata.gz: 3c1957868677c50eb69b66c5945fe941adbcf6dedecff57609ed15460e7c25386e3e3a3d580304da2a434e413eeb5cbaaf6fa4542c4e31e65a2affd00daefcba
7
- data.tar.gz: 2bfcb6c65bd58565879b52cb724a581f60a5b8bada1402ef539b3cf5fe2a71a4bb2b225450087749ad3fd1b516d0863630460aca85e6d9582809c14a4e205dd4
6
+ metadata.gz: a1bb3b9b844e874bfcad7bb61cf0b810515b98d36a2956020c2e631a1ca4ed588b8bb887b09783798f67d6e1c28909521218000a78db14ab65505b43701a5d82
7
+ data.tar.gz: 8012265c7cc5ae8bd203c116f6e2e005f345b4f5d44461db35353f6fb44df39ac75dea3173da0b2c300b40b60a29aa024bc73757f6a8b3761eff34d7b6c2a264
@@ -6,7 +6,7 @@ require 'korinthenkacker/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'korinthenkacker'
8
8
  spec.version = Korinthenkacker::VERSION
9
- spec.authors = ['Vincent Garrigues']
9
+ spec.authors = ['Vincent Garrigues, Dennis Schmidt']
10
10
  spec.email = ['vincent@soundcloud.com']
11
11
  spec.summary = %q{Seriously Jenkins?}
12
12
  spec.description = %q{Find out what the fuck is going on with those tests}
@@ -54,6 +54,14 @@ module Korinthenkacker
54
54
  end
55
55
  end
56
56
 
57
+ desc 'verify [JOBS...]', 'exit with 0 if all recent jobs green, exit with 1 if any recent job red'
58
+ def verify(*jobs)
59
+ jobs.each do |job|
60
+ reports = test_reports(job, 1)
61
+ exit(1) if reports.empty? || !reports.first.success?
62
+ end
63
+ end
64
+
57
65
  private
58
66
 
59
67
  def failed_cases_for(jobname, build=nil)
@@ -6,9 +6,9 @@ module Korinthenkacker
6
6
  end
7
7
 
8
8
  def print_builds_report(reports)
9
- reports.map do |report|
9
+ puts reports.map { |report|
10
10
  "#{report.build}\t#{report.success?}\t#{report.duration}"
11
- end.join("\n")
11
+ }.join("\n")
12
12
  end
13
13
 
14
14
  def print_scenario_reports(test_cases)
@@ -1,3 +1,3 @@
1
1
  module Korinthenkacker
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: korinthenkacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - Vincent Garrigues
7
+ - Vincent Garrigues, Dennis Schmidt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-26 00:00:00.000000000 Z
11
+ date: 2015-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.2.1
123
+ rubygems_version: 2.4.8
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Seriously Jenkins?