Skip to content

Commit

Permalink
build - update script
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed Feb 10, 2021
1 parent a6269b6 commit 047fdfe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,16 @@ param(
[switch]
$SkipTests
)

Push-Location
Set-Location $PSScriptRoot
$moduleName = 'Thycotic.SecretServer'
$staging = "$env:TEMP\tss_staging\"

$git = git status
if ($git[1] -notmatch "You branch is up to date") {
Pop-Location
throw "Local branch has commits not in GitHub"
}
if (Test-Path $staging) {
Remove-Item -Recurse -Force $staging
}
Expand Down Expand Up @@ -134,4 +140,5 @@ if ($tests.FailedCount -eq 0 -or $PSBoundParameters['SkipTests']) {
} else {
Remove-Item -Recurse -Force $staging
Write-Host "Tests failures detected; cancelling and cleaning up"
}
}
Pop-Location

0 comments on commit 047fdfe

Please sign in to comment.