Skip to content

Commit

Permalink
Merge pull request #12 from DevExpress-Examples/fix-last-error-code
Browse files Browse the repository at this point in the history
Update test-example.ps1
  • Loading branch information
SavchenkoAlexander authored Dec 13, 2024
2 parents 700f617 + d79871a commit af428e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test-example.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,23 @@ function Process-JavaScriptProjects {
npm install $packageList --save --save-exact --no-fund
if (-not $?) {
Write-Error "`nERROR: Failed to install DevExtreme packages: $($folder.Name)"
$global:LASTEXITCODE = 1
$global:errorCode = 1
}

Write-Output "`nInstalling the rest of the packages $($folder.Name)"
npm install --save --save-exact --no-fund --loglevel=error
if (-not $?) {
Write-Error "`nERROR: Failed to install packages: $($folder.Name)"
$global:LASTEXITCODE = 1
$global:errorCode = 1
}

Write-Output "`nBuilding the project with 'npm run build' $($folder.Name)"
npm run build
if (-not $?) {
Write-Error "`nERROR: Failed to build the project: $($folder.Name)"
$global:LASTEXITCODE = 1
$global:errorCode = 1
}

Expand Down Expand Up @@ -100,6 +103,7 @@ function Process-DotNetProjects {
Write-Output "`nBuild succeeded for $($slnFile.FullName)."
} else {
Write-Error "`nBuild failed for $($slnFile.FullName)."
$global:LASTEXITCODE = 1
$global:errorCode = 1
}
}
Expand Down

0 comments on commit af428e4

Please sign in to comment.