Automation deployment process using Powershell and Psake

Setup

git clone https://github.com/jincod/build-scripts.git

Change your solution name in scripts\build-scenario.ps1:

properties {
  $Solution = "$ProjectDir\YourSolution.sln"
}

Usage

Build all:

build.cmd

Only clean:

build.cmd clean

Added tasks

task Tests -depends Init {
  $tests = (Get-ChildItem $OutDir -Recurse -Include *Tests.dll)
  exec { & $nunit /noshadow /framework:"net-4.0" /xml:"$OutDir\Tests.nunit.xml" $tests }
}

Call from build step TeamCity

build-step

Github

https://github.com/jincod/build-scripts