-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (25 loc) · 738 Bytes
/
Rakefile
File metadata and controls
33 lines (25 loc) · 738 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
32
require "bundler/gem_tasks"
begin
require 'rspec/core/rake_task'
task :default => :spec
RSpec::Core::RakeTask.new
rescue
puts "rspec gem is not installed"
end
namespace :version do
desc "create a new patch version, create tag and push to github"
task :patch_release do
Rake::Task['version:bump:patch'].invoke
Rake::Task['git:release'].invoke
end
desc "create a new minor version, create tag and push to github"
task :minor_release do
Rake::Task['version:bump:minor'].invoke
Rake::Task['git:release'].invoke
end
desc "create a new major version, create tag and push to github"
task :major_release do
Rake::Task['version:bump:major'].invoke
Rake::Task['git:release'].invoke
end
end