Skip to content

Update test-example.ps1 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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