Browse Source

Refactor build scripts

pull/395/head
Halil ibrahim Kalkan 8 years ago
parent
commit
5330a9a0af
  1. 11
      build-all.ps1

11
build-all.ps1

@ -4,7 +4,7 @@ $rootFolder = (Get-Item -Path "./" -Verbose).FullName
# List of solutions # List of solutions
$solutionsPaths = ( $solutionPaths = (
"framework", "framework",
"modules/users", "modules/users",
"modules/permission-management", "modules/permission-management",
@ -13,17 +13,18 @@ $solutionsPaths = (
"modules/tenant-management", "modules/tenant-management",
"modules/account", "modules/account",
"modules/docs", "modules/docs",
"modules/blogging" "modules/blogging",
"modules/audit-logging"
) )
# Build all solutions # Build all solutions
foreach ($solutionsPath in $solutionsPaths) { foreach ($solutionPath in $solutionPaths) {
$solutionAbsPath = (Join-Path $rootFolder $solutionsPath) $solutionAbsPath = (Join-Path $rootFolder $solutionPath)
Set-Location $solutionAbsPath Set-Location $solutionAbsPath
dotnet build dotnet build
if (-Not $?) { if (-Not $?) {
Write-Host ("Build failed for the solution: " + $solutionsPath) Write-Host ("Build failed for the solution: " + $solutionPath)
exit $LASTEXITCODE exit $LASTEXITCODE
} }
} }

Loading…
Cancel
Save