Skip to content

Commit e40e7e3

Browse files
committed
checklist update
1 parent a7a382f commit e40e7e3

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

helpers/release.rb

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,46 @@
55

66
checklist = Checklist.new
77

8-
checklist.run "on master branch and nothing to commit" do
8+
9+
say "Checklist for version !txtgrn!#{version}!txtrst!"
10+
11+
checklist.run "git on master and clean" do
912
`git status`.match /On branch master.*nothing to commit/m
1013
end
1114

12-
checklist.run "code version is #{version}" do
15+
checklist.run "code version" do
1316
File.read('lib/bashly/version.rb').include? version
1417
end
1518

16-
checklist.run "dockerfile version is #{version}" do
19+
checklist.run "dockerfile version" do
1720
File.read('Dockerfile').include? version
1821
end
1922

20-
checklist.run "tag v#{version} exists" do
23+
checklist.run "local git tag" do
2124
!`git tag -l v#{version}`.empty?
2225
end
2326

24-
checklist.run "changelog has a section for #{version}" do
27+
checklist.run "changelog" do
2528
File.read('CHANGELOG.md').include? "v#{version}"
2629
end
2730

28-
checklist.run "github has tag v#{version}" do
31+
checklist.run "github tag" do
2932
checklist.url_exist? "https://github.com/DannyBen/bashly/tree/v#{version}"
3033
end
3134

32-
checklist.run "built gem is version #{version}" do
35+
checklist.run "local gem version" do
3336
`bundle exec bashly --version`.strip == version
3437
end
3538

36-
checklist.run "published gem is version #{version}" do
39+
checklist.run "published gem version" do
3740
checklist.url_exist? "https://rubygems.org/gems/bashly/versions/#{version}"
3841
end
3942

40-
checklist.run "local docker image exists with tag #{version}" do
43+
checklist.run "local docker image version" do
4144
`docker images`.match /bashly\s*#{version}/
4245
end
4346

44-
checklist.run "remote docker image exists with tag #{version}" do
47+
checklist.run "remote docker image version" do
4548
digest = `docker inspect --format='{{.RepoDigests}}' dannyben/bashly:#{version}`[/@sha256:(.*)\]/,1]
4649
if digest
4750
checklist.url_exist? "https://hub.docker.com/layers/dannyben/bashly/#{version}/images/sha256-#{digest}"
@@ -50,15 +53,15 @@
5053
end
5154
end
5255

53-
checklist.run "github release is available for #{version}" do
56+
checklist.run "github release" do
5457
checklist.url_exist? "https://github.com/DannyBen/bashly/releases/tag/v#{version}"
5558
end
5659

57-
checklist.run "version in local retype is #{version}" do
60+
checklist.run "local retype" do
5861
YAML.load_file('/vagrant/sites/bashly/retype.yml')['branding']['label'] == "v#{version}"
5962
end
6063

61-
checklist.run "version in remote retype is #{version}" do
64+
checklist.run "remote retype" do
6265
`curl -Ss https://raw.githubusercontent.com/DannyBen/bashly-book/master/retype.yml`.include? "label: v#{version}"
6366
end
6467

0 commit comments

Comments
 (0)