forked from seejohnrun/gotcha
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (24 loc) · 712 Bytes
/
Rakefile
File metadata and controls
31 lines (24 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#require 'spec/rake/spectask'
require File.dirname(__FILE__) + '/lib/gotcha/version'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
task :build do
system "gem build gotcha.gemspec"
end
task :release => :build do
# tag and push
system "git tag v#{Gotcha::VERSION}"
system "git push origin --tags"
# push the gem
system "gem push gotcha-#{Gotcha::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