Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
Updated build script
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwertheim committed Dec 8, 2011
1 parent 10f577f commit 73231e7
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Deploy/rake-build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
@env_buildversion = "0.7.1" + (ENV['env_buildnumber'].to_s.empty? ? "" : ".#{ENV['env_buildnumber'].to_s}")
@env_buildconfigname = ENV['env_buildconfigname'].to_s.empty? ? "Release" : ENV['env_buildconfigname'].to_s
@env_buildname = "#{@env_solutionname}-v#{@env_buildversion}-#{@env_buildconfigname}"
@env_buildfolderpath = "#{ENV['env_buildfolderpath']}Builds/#{@env_buildname}"
@env_outputfolderpath = @env_buildfolderpath
@env_buildfolderpath = @env_buildname
#--------------------------------------
#optional if no remote nuget actions should be performed
@env_nugetPublishApiKey = ENV['env_nugetPublishApiKey']
Expand All @@ -25,13 +24,13 @@
#--------------------------------------
# Reusable vars
#--------------------------------------
kiwiMarkdownOutputPath = "#{@env_outputfolderpath}/#{@env_projectnameKiwiMarkdown}"
kiwiMarkdownOutputPath = "#{@env_buildfolderpath}/#{@env_projectnameKiwiMarkdown}"
#--------------------------------------
# Albacore flow controlling tasks
#--------------------------------------
task :ci => [:buildIt, :copyIt, :testIt, :zipIt, :packIt, :cleanItUp, :publishIt]
task :ci => [:buildIt, :copyIt, :testIt, :zipIt, :packIt, :publishIt]

task :local => [:buildIt, :copyIt, :testIt, :zipIt, :packIt, :cleanItUp]
task :local => [:buildIt, :copyIt, :testIt, :zipIt, :packIt]
#--------------------------------------
task :testIt => [:unittests, :specifications]

Expand All @@ -54,11 +53,7 @@

task :ensureCleanBuildFolder do
FileUtils.rm_rf(@env_buildfolderpath)
FileUtils.mkdir_p(@env_outputfolderpath)
end

task :cleanItUp do
FileUtils.rm_rf(kiwiMarkdownOutputPath)
FileUtils.mkdir_p(@env_buildfolderpath)
end

msbuild :buildIt => [:ensureCleanBuildFolder, :versionIt] do |msb|
Expand Down

0 comments on commit 73231e7

Please sign in to comment.