Permalink
Browse files

Added basic Rakefile

  • Loading branch information...
1 parent 4c46136 commit d0027e87abaee2a70769e08fb7cda074c502e756 @seejohnrun committed Nov 28, 2011
Showing with 25 additions and 0 deletions.
  1. +25 −0 Rakefile
View
@@ -0,0 +1,25 @@
+require 'rspec/core/rake_task'
+require File.dirname(__FILE__) + '/lib/haste/version'
+
+task :build => :test do
+ system "gem build haste.gemspec"
+end
+
+task :release => :build do
+ # tag and push
+ system "git tag v#{Haste::VERSION}"
+ system "git push origin --tags"
+ # push the gem
+ system "gem push haste-#{Haste::VERSION}.gem"
+end
+
+RSpec::Core::RakeTask.new(:test) do |t|
+ t.pattern = 'spec/**/*_spec.rb'
+ fail_on_error = true # be explicit
+end
+
+RSpec::Core::RakeTask.new(:rcov) do |t|
+ t.pattern = 'spec/**/*_spec.rb'
+ t.rcov = true
+ fail_on_error = true # be explicit
+end

0 comments on commit d0027e8

Please sign in to comment.