-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.build.ps1
39 lines (29 loc) · 862 Bytes
/
.build.ps1
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
39
<#
.Synopsis
Build script <https://github.com/nightroman/Invoke-Build>
.Example
# Create module from source.
Invoke-Build Build
.Example
# Add doc templates for new command.
# BE CAREFUL! Existing documents will be overwritten and must be discarded using git.
Invoke-Build Doc.Init -ForceDocInit
#>
param(
[ValidateSet('Debug', 'Release')]
[string] $Configuration = 'Debug',
[string] $NuGetApiKey = $env:nuget_apikey,
# Overwrite published versions
[switch] $ForcePublish,
# Add doc templates for new command.
[switch] $ForceDocInit,
# Version suffix to prereleases
[int] $BuildNumber
)
$ModuleName = 'PsSqlMermaid'
. $PsScriptRoot\tasks\Build.Tasks.ps1
. $PSScriptRoot\tasks\Dependencies.Tasks.ps1
. $PSScriptRoot\tasks\PsBuild.Tasks.ps1
. $PSScriptRoot\tasks\Testdata.Tasks.ps1
# Synopsis: Default task.
task . Build