Cleaning InvokeBuild Script

This commit is contained in:
Wes Carroll
2019-06-10 17:54:53 -04:00
parent 59a0112f2c
commit 82df93143b
+1 -8
View File
@@ -1,12 +1,5 @@
#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')
task . CreateArtifacts
@@ -54,7 +47,7 @@ task AnalyzeBuiltFiles CheckPSScriptAnalyzerInstalled, CreatePsm1ForRelease, {
Severity = @('Error', 'Warning')
Recurse = $true
Verbose = $false
ExcludeRule = @()
ExcludeRule = @("PSUseBOMForUnicodeEncodedFile")
}
$saresults = Invoke-ScriptAnalyzer @scriptAnalyzerParams