mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-16 00:35:56 +00:00
Added basic Rakefile
This commit is contained in:
25
Rakefile
Normal file
25
Rakefile
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user