forked from treestryder/powershell_module_workdayapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
19 lines (19 loc) · 661 Bytes
/
Copy pathbuild.ps1
File metadata and controls
19 lines (19 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#requires -Module ModuleBuilder
[cmdletBinding()]
Param(
[Alias("ModuleVersion")]
[string]$Version
)
Push-Location $PSScriptRoot -StackName BuildSUEModule
$Test = Invoke-Pester -PassThru -OutputFile ./artifacts/TestResults.xml -OutputFormat NUnitXml
#If ($Test.FailedCount -gt 0) {
# Write-Error "Tests Failed, please review the errors (artifacts/TestResults.xml). Build will not continue"
#} else {
Try {
Build-Module -SourcePath .\WorkdayApi @PSBoundParameters
} Catch {
Write-Host "We encountered a build error"
Write-Host "Error Message: $($_.Exception.Message)"
}
#}
Pop-Location -StackName BuildSUEModule