Skip to content

Commit

Permalink
Merge pull request #7 from DevExpress-Examples/update-script
Browse files Browse the repository at this point in the history
Update test-example.ps1
  • Loading branch information
SavchenkoAlexander authored Dec 12, 2024
2 parents d2d863e + 18c4aeb commit 6997139
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!-- default badges list -->
![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/800447205/23.1.3%2B)
[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T1233410)
[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183)
[![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives)
Expand Down
16 changes: 8 additions & 8 deletions test-example.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Write-Output "Branch name: $env:branchName"
$global:inputVersion = $env:branchName
$global:LASTEXITCODE = 0
$global:errorCode = 0

$BUILD_VERSIONS_LIST = "BUILD_VERSIONS_LIST"

Expand All @@ -25,8 +25,8 @@ function Process-JavaScriptProjects {
[hashtable[]]$Folders = @(
@{ Name = "jQuery"; Packages = @("devextreme-dist", "devextreme") },
@{ Name = "Angular"; Packages = @("devextreme-angular", "devextreme") },
@{ Name = "Vue"; Packages = @("devextreme-vue", "devextreme") },
@{ Name = "React"; Packages = @("devextreme-react", "devextreme") }
@{ Name = "React"; Packages = @("devextreme-react", "devextreme") },
@{ Name = "Vue"; Packages = @("devextreme-vue", "devextreme") }
)
)
Write-Host "`n--== Processing JavaScript Projects ==--"
Expand Down Expand Up @@ -54,7 +54,7 @@ function Process-JavaScriptProjects {
$installResult = & npm install --force --no-fund --loglevel=error -PassThru
if ($LASTEXITCODE -ne 0) {
Write-Error "ERROR: npm install failed in $($folder.Name)"
$global:LASTEXITCODE = 1
$global:errorCode = 1
}

Write-Host "`n<-- Updating packages... -->"
Expand All @@ -63,7 +63,7 @@ function Process-JavaScriptProjects {
$buildResult = & npm run build
if ($LASTEXITCODE -ne 0) {
Write-Error "ERROR: npm run build failed in $($folder.Name)"
$global:LASTEXITCODE = 1
$global:errorCode = 1
}

Set-Location ..
Expand Down Expand Up @@ -92,7 +92,7 @@ function Process-DotNetProjects {
Write-Host "Build succeeded for $($slnFile.FullName)."
} else {
Write-Error "Build failed for $($slnFile.FullName)."
$global:LASTEXITCODE = 1
$global:errorCode = 1
}
}
}
Expand Down Expand Up @@ -139,6 +139,6 @@ Set-BuildVersion
Process-JavaScriptProjects
Process-DotNetProjects

Write-Host "Error code: $global:LASTEXITCODE"
Write-Host "Error code: $global:errorCode"

exit $global:LASTEXITCODE
exit $global:errorCode

0 comments on commit 6997139

Please sign in to comment.