Skip to content

Commit

Permalink
Update default test version when bumping major releases
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude committed Jul 11, 2018
1 parent 741597d commit 809b102
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script/release
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ def bump_version(new_version, min_version = nil, path = 'share/github-backup-uti
content = File.read('bin/ghe-host-check')
new_content = content.gsub(/supported_minimum_version="[0-9]\.[0-9]+\.0"/, "supported_minimum_version=\"#{min_version}\"")
File.open('bin/ghe-host-check', 'w') {|file| file.puts new_content }

content = File.read('test/testlib.sh')
new_content = content.gsub(/GHE_TEST_REMOTE_VERSION:=[0-9]\.[0-9]+\.0/,"GHE_TEST_REMOTE_VERSION:=#{new_version}")
File.open('test/testlib.sh', 'w') {|file| file.puts new_content }
end
end

Expand Down Expand Up @@ -384,6 +388,7 @@ if $PROGRAM_NAME == __FILE__
puts `git diff --color`
`git checkout -- share/github-backup-utils/version`
`git checkout -- bin/ghe-host-check`
`git checkout -- test/testlib.sh`
exit
end

Expand Down

0 comments on commit 809b102

Please sign in to comment.