Remove Unused File
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
task . FileTests, BuildPsd1, Analyze
|
||||
|
||||
task InstallDependencies {
|
||||
Install-Module Pester -Force
|
||||
Install-Module PSScriptAnalyzer -Force
|
||||
}
|
||||
|
||||
task Analyze {
|
||||
$scriptAnalyzerParams = @{
|
||||
Path = "$BuildRoot\ZertoApiWrapper\"
|
||||
Severity = @('Error', 'Warning')
|
||||
Recurse = $true
|
||||
Verbose = $false
|
||||
ExcludeRule = @('PSUseDeclaredVarsMoreThanAssignments','PSUseShouldProcessForStateChangingFunctions')
|
||||
}
|
||||
$saresults = Invoke-ScriptAnalyzer @scriptAnalyzerParams
|
||||
|
||||
if ($saResults) {
|
||||
$saResults | Format-Table
|
||||
throw "One or more PSScriptAnalyzer errors/warnings were found"
|
||||
}
|
||||
}
|
||||
|
||||
task FileTests {
|
||||
Invoke-Pester "$BuildRoot\Tests\Public\ZertoApiWrapper.Tests.ps1"
|
||||
}
|
||||
|
||||
task BuildPsd1 {
|
||||
$functionsToExportPath = "$BuildRoot\ZertoApiWrapper\Public\"
|
||||
$functionsToExport = (Get-ChildItem -Path $functionsToExportPath -File).name.Replace('.ps1', '')
|
||||
$functionsToExport
|
||||
}
|
||||
Reference in New Issue
Block a user