Permalink
Browse files

Removing the possibility to override the version number using envirom…

…ent variables or rake parameters
  • Loading branch information...
1 parent 130ccb8 commit f9865dbc1fdb15ca3f0dd577785689a42249d2a2 @agross agross committed Mar 28, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 rakefile.rb
View
@@ -28,19 +28,19 @@
next File.read('NUGET_KEY') if File.readable?('NUGET_KEY')
end
configatron.project = Configatron::Delayed.new do
- "#{project}#{"-Testing" if ENV.include? 'VERSION'}#{'-Signed' if configatron.sign_assembly}"
+ "#{project}#{'-Signed' if configatron.sign_assembly}"
end
configatron.nuget.package = Configatron::Delayed.new do
"Distribution/#{configatron.project}.#{configatron.version.compatible}.nupkg"
end
configatron.zip.package = Configatron::Delayed.new do
"Distribution/#{configatron.project}-#{configatron.target}.zip"
end
- configatron.version.full = Configatron::Delayed.new do
- ENV['VERSION'] || "#{configatron.build.base}.#{configatron.build.number || '0'}-#{configatron.build.sha[0..6]}"
+ configatron.version.full = Configatron::Delayed.new do
+ "#{configatron.build.base}.#{configatron.build.number || '0'}-#{configatron.build.sha[0..6]}"
end
- configatron.version.compatible = Configatron::Delayed.new do
- ENV['VERSION'] || "#{configatron.build.base}.#{configatron.build.number || '0'}.0"
+ configatron.version.compatible = Configatron::Delayed.new do
+ "#{configatron.build.base}.#{configatron.build.number || '0'}.0"
end
configatron.configure_from_hash build_config
@@ -69,7 +69,7 @@
namespace :generate do
desc "Generate embeddable version information"
task :version do
- next if configatron.build.number.nil? && !ENV.include?('VERSION')
+ next if configatron.build.number.nil?
puts "##teamcity[buildNumber '#{configatron.version.full}']"

0 comments on commit f9865db

Please sign in to comment.