Browse Source
Merge pull request #16147 from abpframework/skoc/shorten-build-time
Skoc/shorten build time
pull/16148/head
Alper Ebiçoğlu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
5 deletions
-
build/build-all-release.ps1
-
nupkg/pack.ps1
-
nupkg/unit_test.ps1
|
|
@ -5,7 +5,7 @@ |
|
|
foreach ($solutionPath in $solutionPaths) { |
|
|
foreach ($solutionPath in $solutionPaths) { |
|
|
$solutionAbsPath = (Join-Path $rootFolder $solutionPath) |
|
|
$solutionAbsPath = (Join-Path $rootFolder $solutionPath) |
|
|
Set-Location $solutionAbsPath |
|
|
Set-Location $solutionAbsPath |
|
|
dotnet build --configuration Release |
|
|
dotnet build --configuration Release -- /maxcpucount |
|
|
if (-Not $?) { |
|
|
if (-Not $?) { |
|
|
Write-Host ("Build failed for the solution: " + $solutionPath) |
|
|
Write-Host ("Build failed for the solution: " + $solutionPath) |
|
|
Set-Location $rootFolder |
|
|
Set-Location $rootFolder |
|
|
|
|
|
@ -23,8 +23,8 @@ foreach($project in $projects) { |
|
|
# Create nuget pack |
|
|
# Create nuget pack |
|
|
Write-Info "[$i / $projectsCount] - Packing project: $projectName" |
|
|
Write-Info "[$i / $projectsCount] - Packing project: $projectName" |
|
|
Set-Location $projectFolder |
|
|
Set-Location $projectFolder |
|
|
# dotnet clean |
|
|
# dotnet clean |
|
|
dotnet pack -c Release /maxcpucount |
|
|
dotnet pack -c Release --no-build |
|
|
|
|
|
|
|
|
if (-Not $?) { |
|
|
if (-Not $?) { |
|
|
Write-Error "Packaging failed for the project: $projectName" |
|
|
Write-Error "Packaging failed for the project: $projectName" |
|
|
|
|
|
@ -5,6 +5,4 @@ foreach($solution in $solutions) { |
|
|
$solutionFolder = Join-Path $rootFolder $solution |
|
|
$solutionFolder = Join-Path $rootFolder $solution |
|
|
Set-Location $solutionFolder |
|
|
Set-Location $solutionFolder |
|
|
dotnet test --no-build --logger trx |
|
|
dotnet test --no-build --logger trx |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|