Skip to content

Commit

Permalink
remove git version check from check_version.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
bg-stripe committed Mar 7, 2017
1 parent 15b83b9 commit a3919c4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ci_scripts/check_version.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
#!/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`

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!"

0 comments on commit a3919c4

Please sign in to comment.