Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 668 Bytes
require 'spec/rake/spectask'
require File.dirname(__FILE__) + '/lib/database_validation/version'
task :build do
system "gem build database_validation.gemspec"
end
task :release => :build do
# tag and push
system "git tag v#{DatabaseValidation::version}"
system "git push origin --tags"
# push the gem
system "gem push database_validation-#{DatabaseValidation::version}.gem"
end
Spec::Rake::SpecTask.new(:test) do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
fail_on_error = true # be explicit
end
Spec::Rake::SpecTask.new(:rcov) do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.rcov = true
fail_on_error = true # be explicit
end