forked from Albacore/albacore
-
Notifications
You must be signed in to change notification settings - Fork 0
Output Task
Henrik edited this page Aug 26, 2012
·
1 revision
An output task is the abstraction of all your typical file operations in the last stages of your build, when you're trying to create a suitable layout for a package. Typically this step is followed by extensive use of FileUtil, mv's, cp's etc.
The output task gives you a simple declarative way to do just that.
output :output => [:test] do |out|
out.from '.'
out.to 'out'
out.file 'bin/release/build.exe', :as=>'build.exe'
out.file 'LICENSE.txt'
out.file 'README.md'
out.file 'VERSION'
end
This is most useful in asp.net / web deployments where things like 'one-click publish' may help you but only to a certain length.
Here is a typical deployment output, involving running ERB on your config file (this is a viable, more powerful, alternate to the new xml transforms)
output :deploy_prod do | o |
o.from 'my.webservice'
o.to 'out'
o.file 'global.asax'
o.file 'web.config.prod', :as => 'web.config'
o.erb 'custom_config', :as => 'other.config', :locals => { :password=>'123456' }
o.dir 'bin'
end
Note: The output task will pre-create any path that it needs. It will drop and create the output path.
- Build-Server Integration
- Command Line Task Options
- Configuration
- Custom Tasks
- Logging Options
- Sample Usages
- Task Arguments and Rakefile Parameters
- YAML Configuration
- ASP.NET Compiler - ASP.Net website compiler
- Assembly Info Generator - generate assembly info dynamically
- CSC - C# compiler
- Exec - Execute arbitrary cmd
- Fluent Migrator - Run FluentMigrator on migration library
- ILMerge - Merge dll/exe-s together
- MSBuild and XBuild - Compile a .sln-file or a MsBuild xml-file
- MSpec - Test using MSpec (machine.specifications)
- MSTest - Test using Microsoft Test Framework
- NAnt - Run a NAnt script
- NChurn - Calculate per-file churn
- NCover Console - Run NCover for tests/library
- NCover Reports - Generate a report from a coverage run
- NDepend - Run NDepend to check static code metrics
- NuGet Install - Install NuGet packages
- NuGet Pack - Create NuGet packages
- NuGet Push - Push NuGet packages to official MS repo
- NuGet Publish - Publish NuGet packages
- NUnit - Test using NUnit
- NuSpec - Generate a NuSpec file
- Output - File copying and template expansion
- PLink - SSH into a remote computer and run a command
- SQLCmd - Run a SQL command as a part of your build process
- UnZip - Unzip a directory
- XBuild - Run XBuild (will be merged into MsBuild)
- XUnit - Test using XUnit
- Zip - Zip a directory or files
- Edit the Wiki Locally - How to edit the wiki without using Github's interface
- How to Build Albacore
- How to Contribute