21 lines
594 B
PowerShell
21 lines
594 B
PowerShell
<#
|
|
.Description
|
|
Installs and loads all the required modules for the build.
|
|
.Author
|
|
Warren F. (RamblingCookieMonster)
|
|
#>
|
|
|
|
[cmdletbinding()]
|
|
param ($Task = 'Default')
|
|
|
|
# Grab nuget bits, install modules, set build variables, start build.
|
|
Get-PackageProvider -Name NuGet -ForceBootstrap | Out-Null
|
|
|
|
Install-Module Psake, PSDeploy, BuildHelpers, PSScriptAnalyzer -force
|
|
Install-Module Pester -Force -SkipPublisherCheck
|
|
Import-Module Psake, BuildHelpers, PSScriptAnalyzer
|
|
|
|
Set-BuildEnvironment
|
|
|
|
Invoke-psake -buildFile .\psake.ps1 -taskList $Task -nologo
|
|
exit ( [int]( -not $psake.build_success ) ) |