Permalink
Browse files

Version bump and such

  • Loading branch information...
1 parent e6248e6 commit 0a1d9051ee8b34d450ec754a5c0218191b991ef0 @nakajima committed Mar 7, 2009
Showing with 8 additions and 3 deletions.
  1. +1 −1 dash-ci.gemspec
  2. +2 −1 lib/dash-ci/base.rb
  3. +5 −1 lib/dash-ci/target.rb
View
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{dash-ci}
- s.version = "0.0.2"
+ s.version = "0.0.3"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Pat Nakajima"]
View
@@ -30,7 +30,8 @@ def make_recipe(klass, recipe, options)
recipe.time CI.clean(suite), :method => method_id
end
- recipe.counter :total_builds, :incremented_by => instrument(klass, 'build!')
+ recipe.time :total_time, :method => 'CI.run'
+ recipe.counter :total_builds, :incremented_by => instrument(klass, 'finish!')
recipe.counter :green_builds, :incremented_by => instrument(klass, 'green!')
recipe.counter :broken_builds, :incremented_by => instrument(klass, 'fail!')
end
View
@@ -14,7 +14,7 @@ def build!
error(e)
fail!(suite)
end
- end ; finish!
+ end ; finish! ; report!
end
# Instrumented methods
@@ -28,6 +28,10 @@ def green!(suite)
# Ensure data gets reported back to FiveRuns before process exits.
def finish!
+ puts "Finished all suites."
+ end
+
+ def report!
session.report!
end

0 comments on commit 0a1d905

Please sign in to comment.