-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Update the release procedure #19
base: master
Are you sure you want to change the base?
Conversation
Based on code by @bastelfreak
|
||
version = args[:version] | ||
if ['major', 'minor', 'patch'].include?(version) | ||
bump_task = "module:bump:#{version}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patch will need special treatment: Bumping version from 2.0.1-rc0 to 2.0.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about allowing users to specify a specific version as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should be supported in the elsif
clause
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
voxpupuli/puppet-blacksmith#62 should handle the bumping issue.
The additional commits move the changelog task from modulesync to this gem. It also updates docs and simplifies the travis_release. |
end | ||
|
||
Rake::Task[bump_task].invoke | ||
Rake::Task['changelog'].invoke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work. The future version is read when the Rakefile is loaded, then bumped at runtime but not re-read.
ping @ekohl :) How should we proceed here? |
@ekohl ping :) |
Based on code by @bastelfreak in voxpupuli/modulesync_config#397 (comment)
This should codify what we are doing in practice.