-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.build.ps1
35 lines (26 loc) · 811 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
<#
.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 = 'PsCosmos'
. $PSScriptRoot\tasks\Build.Tasks.ps1
. $PSScriptRoot\tasks\Dependency.Tasks.ps1
. $PSScriptRoot\tasks\PsBuild.Tasks.ps1