Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jweber committed Oct 8, 2014
2 parents 0dfeda0 + e730e7c commit 02e8c56
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions rakefile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,16 @@
task :versioning do
ver = SemVer.find
revision = (ENV['BUILD_NUMBER'] || ver.patch).to_i
var = SemVer.new(ver.major, ver.minor, revision, ver.special)
#ver = SemVer.new(ver.major, ver.minor, revision, ver.special)

if ver.special != ''
ENV['BUILD_VERSION'] = BUILD_VERSION = ver.format("%M.%m.%p.%s") + ".#{commit_data()[0]}"
ENV['NUGET_VERSION'] = NUGET_VERSION = ver.format("%M.%m.%p-%s")
else
ENV['BUILD_VERSION'] = BUILD_VERSION = ver.format("%M.%m.%p") + ".#{commit_data()[0]}"
ENV['NUGET_VERSION'] = NUGET_VERSION = ver.format("%M.%m.%p")
end

ENV['BUILD_VERSION'] = BUILD_VERSION = ver.format("%M.%m.%p.%s") + ".#{commit_data()[0]}"
ENV['NUGET_VERSION'] = NUGET_VERSION = ver.format("%M.%m.%p-%s")
ENV['FORMAL_VERSION'] = FORMAL_VERSION = "#{ SemVer.new(ver.major, ver.minor, revision).format "%M.%m.%p"}"
puts "##teamcity[buildNumber '#{BUILD_VERSION}']"
end
Expand Down

0 comments on commit 02e8c56

Please sign in to comment.