-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVertofile
More file actions
35 lines (26 loc) · 910 Bytes
/
Copy pathVertofile
File metadata and controls
35 lines (26 loc) · 910 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
33
34
35
verto_version '0.12.0'
config {
version.prefix = 'v' # Adds a version_prefix
git.pull_before_tag_creation = true
git.push_after_tag_creation = true
}
context(branch('master')) {
before_command_tag_up {
command_options.add(filter: 'release_only')
}
before_tag_creation {
update_changelog
git!('add CHANGELOG.md')
file('lib/verto/version.rb').replace(latest_version.to_s, new_version.to_s)
git!('add lib/verto/version.rb')
file('README.md').replace_all(latest_version.to_s, new_version.to_s)
git!('add README.md')
file('lib/verto/utils/templates/Vertofile').replace(latest_version.to_s, new_version.to_s)
file('Vertofile').replace(latest_version.to_s, new_version.to_s)
git!('add Vertofile lib/verto/utils/templates/Vertofile')
sh!('bundle install')
sh!('rake install')
git!('add Gemfile.lock')
git!('commit -m "Bumps Version"')
}
}