Cleaning InvokeBuild Script
This commit is contained in:
@@ -1,12 +1,5 @@
|
|||||||
#Requires -Modules 'InvokeBuild'
|
#Requires -Modules 'InvokeBuild'
|
||||||
|
|
||||||
. '.\ZertoApiWrapper.settings.ps1'
|
|
||||||
# import-module "$BuildRoot\ZertoApiWrapper\ZertoApiWrapper.psd1" -Verbose -Force
|
|
||||||
|
|
||||||
<# [CmdletBinding()]
|
|
||||||
param([switch]$Install,
|
|
||||||
[string]$Configuration = (property Configuration Release))
|
|
||||||
$targetDir = "temp/$Configuration/ZertoApiWrapper" #>
|
|
||||||
$version = "{0}.{1}" -f $(Get-Content .\version.txt), $(get-date -format 'yyyyMMdd')
|
$version = "{0}.{1}" -f $(Get-Content .\version.txt), $(get-date -format 'yyyyMMdd')
|
||||||
|
|
||||||
task . CreateArtifacts
|
task . CreateArtifacts
|
||||||
@@ -54,7 +47,7 @@ task AnalyzeBuiltFiles CheckPSScriptAnalyzerInstalled, CreatePsm1ForRelease, {
|
|||||||
Severity = @('Error', 'Warning')
|
Severity = @('Error', 'Warning')
|
||||||
Recurse = $true
|
Recurse = $true
|
||||||
Verbose = $false
|
Verbose = $false
|
||||||
ExcludeRule = @()
|
ExcludeRule = @("PSUseBOMForUnicodeEncodedFile")
|
||||||
}
|
}
|
||||||
$saresults = Invoke-ScriptAnalyzer @scriptAnalyzerParams
|
$saresults = Invoke-ScriptAnalyzer @scriptAnalyzerParams
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user