-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.build.ps1
41 lines (30 loc) · 897 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
40
41
<#
.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,
# Use specific branch from PsBuildTasks.
[string] $PsBuildTaskBranch
)
$ModuleName = 'PsSqlClient'
. $PSScriptRoot\tasks\Build.Tasks.ps1
. $PSScriptRoot\tasks\Dependency.Tasks.ps1
. $PSScriptRoot\tasks\PsBuild.Tasks.ps1
# Synopsis: Default task.
task . Build