forked from loandepot-oss/SnowSQL
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.ps1
More file actions
38 lines (27 loc) · 678 Bytes
/
build.ps1
File metadata and controls
38 lines (27 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[CmdletBinding()]
param($Task = 'Default')
$Script:Modules = @(
'BuildHelpers',
'InvokeBuild',
'Pester',
'platyPS',
'PSScriptAnalyzer',
'DependsOn'
)
$Script:ModuleInstallScope = 'CurrentUser'
'Starting build...'
'Installing module dependencies...'
Get-PackageProvider -Name 'NuGet' -ForceBootstrap | Out-Null
Install-Module -Name $Script:Modules -Scope $Script:ModuleInstallScope -Force -SkipPublisherCheck
Set-BuildEnvironment -Force
Get-ChildItem Env:BH*
Get-ChildItem Env:APPVEYOR*
$Error.Clear()
'Invoking build...'
Invoke-Build $Task -Result 'Result'
if ($Result.Error)
{
$Error[-1].ScriptStackTrace | Out-String
exit 1
}
exit 0