summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTom Duffield <tom@chef.io>2016-11-07 16:07:03 -0600
committerTom Duffield <tom@chef.io>2016-11-09 12:59:09 -0600
commit87ee0037126cc350beab415cac06892e9b3e58ff (patch)
tree6c510d493939bdce1c28f307bdb1b12433427a51 /Rakefile
parentf80f0dce2eabe9d22dcf469e1d1a681d5f9956e7 (diff)
downloadchef-87ee0037126cc350beab415cac06892e9b3e58ff.tar.gz
Add automation for bumping major/minor version
Signed-off-by: Tom Duffield <tom@chef.io>
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 98216cf5fd..5a6b224128 100644
--- a/Rakefile
+++ b/Rakefile
@@ -37,6 +37,22 @@ end
task "version:bump" => %w{version:bump_patch version:update}
task "version:bump" => %w{version:bump_patch version:update}
+task "version:bump_minor" do
+ Rake::Task["changelog:archive"].invoke
+ maj, min, _build = Chef::VERSION.split(".")
+ File.open("VERSION", "w+") { |f| f.write("#{maj}.#{min.to_i + 1}.0") }
+ Rake::Task["version"].invoke
+ Rake::Task["bundle:install"].invoke
+end
+
+task "version:bump_major" do
+ Rake::Task["changelog:archive"].invoke
+ maj, _min, _build = Chef::VERSION.split(".")
+ File.open("VERSION", "w+") { |f| f.write("#{maj.to_i + 1}.0.0") }
+ Rake::Task["version"].invoke
+ Rake::Task["bundle:install"].invoke
+end
+
task :pedant, :chef_zero_spec
task :build_eventlog do