Skip to content
Henrik edited this page Aug 21, 2014 · 1 revision

Ideas:

When building multiple configurations, Build tasks should be invoked with different parameters According to the graph of tasks to be executed

require 'albacore'

Albacore.vary_by_parameters do |params|
  # write to dynamic method
  params.Configuration = ['Debug-Tests', 'Release']
end

build :b do |b|
  b.vary_by_param 'Configuration'
end

nugets_pack :p => :b do |p|
 # ... 
end

task :default => :p

Creating two runs

  • :b[Debug-Tests] => :p => :default and
  • :b[Release] => :p => :default

where only :b is invoked twice, but :p and :default are only invoked only once each.


When building services and/or web sites, The bundling task_type should take care of packaging for deployment

Clone this wiki locally