remove git version check from check_version.rb
This commit is contained in:
parent
15b83b9f48
commit
a3919c4958
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
puts "Checking that version is set correctly..."
|
||||
git_version = `git describe`.strip.split("-").first # this is the most recent tag
|
||||
file_version = File.open('VERSION').first.strip
|
||||
search_result = `grep #{file_version} ./Stripe/PublicHeaders/STPAPIClient.h`
|
||||
|
||||
|
@ -9,12 +8,4 @@ if search_result.length == 0
|
|||
abort("VERSION does not match STPSDKVersion in STPAPIClient.h")
|
||||
end
|
||||
|
||||
if ENV["TRAVIS_BRANCH"] == "master"
|
||||
|
||||
if git_version > "v#{file_version}"
|
||||
abort("Current git tag is greater than VERSION, did you forget to increment it?")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
puts "Done!"
|
||||
|
|
Loading…
Reference in New Issue