Streamline Tests and Builds

This commit is contained in:
Wes Carroll
2019-03-27 07:51:49 -04:00
parent 7da4588b9c
commit bbcbb4a970
3 changed files with 25 additions and 16 deletions
+9
View File
@@ -21,3 +21,12 @@ task Analyze {
}
}
task FileTests {
Invoke-Pester "$BuildRoot\Tests\Public\ZertoApiWrapper.Tests.ps1"
}
task BuildPsd1 {
$functionsToExportPath = "{0}\ZertoApiWrapper\Public\" -f $MyInvocation.MyCommand.PSPath
$functionsToExport = (Get-ChildItem -Path $functionsToExportPath -File).name.Replace('.ps1', '')
$functionsToExport
}