Add all other common module files
This commit is contained in:
35
build.ps1
Normal file
35
build.ps1
Normal file
@@ -0,0 +1,35 @@
|
||||
[CmdletBinding()]
|
||||
|
||||
param($Task = 'Default')
|
||||
|
||||
$Script:Modules = @(
|
||||
'BuildHelpers',
|
||||
'InvokeBuild',
|
||||
'LDModuleBuilder',
|
||||
'Pester',
|
||||
'platyPS',
|
||||
'PSScriptAnalyzer'
|
||||
)
|
||||
|
||||
$Script:ModuleInstallScope = 'CurrentUser'
|
||||
|
||||
'Starting build...'
|
||||
'Installing module dependencies...'
|
||||
|
||||
Get-PackageProvider -Name 'NuGet' -ForceBootstrap | Out-Null
|
||||
|
||||
Update-LDModule -Name $Script:Modules -Scope $Script:ModuleInstallScope
|
||||
|
||||
Set-BuildEnvironment
|
||||
$Error.Clear()
|
||||
|
||||
'Invoking build...'
|
||||
|
||||
Invoke-Build $Task -Result 'Result'
|
||||
if ($Result.Error)
|
||||
{
|
||||
$Error[-1].ScriptStackTrace | Out-String
|
||||
exit 1
|
||||
}
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user