diff options
author | Tom Duffield <tom@chef.io> | 2017-02-10 21:35:14 -0600 |
---|---|---|
committer | Tom Duffield <tom@chef.io> | 2017-02-13 09:47:21 -0600 |
commit | c5801187f978f6d43017f63d0fbd2c714d273395 (patch) | |
tree | d938d6b7ead6f54f675ea6f5687239cb8254e183 /Rakefile | |
parent | b949a48acc21d4b64869bd7b834708d5232b1f2a (diff) | |
download | chef-tduffield/add-label-version-bumping.tar.gz |
Bump the version of chef depending on the label associated with PRtduffield/add-label-version-bumping
Signed-off-by: Tom Duffield <tom@chef.io>
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -29,30 +29,12 @@ require_relative "tasks/cbgb" require_relative "tasks/dependencies" require_relative "tasks/changelog" require_relative "tasks/announce" +require_relative "tasks/version" ChefConfig::PackageTask.new(File.expand_path("..", __FILE__), "Chef", "chef") do |package| package.component_paths = ["chef-config"] package.generate_version_class = true end -# Add conservative dependency update to version:bump (which was created by PackageTask) -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 |