Files
meteor/scripts/windows/ci/test.ps1
Nacho Codoñer e55febbecb Merge 2.x to 3.x (#13281)
* only run windows test on push for devel/v2 and on all pull requests

* add up-to-date windows scripts

* git reset

* ensure to git reset checkout before updating git submodule

* ensure to git reset checkout on all submodules as well

* dont need to git reset on the pipeline level

* remove app veyor as not needed

---------

Co-authored-by: Leonardo Venturini <leovenbag@gmail.com>
2024-08-07 13:23:07 +02:00

30 lines
716 B
PowerShell

# For now, we only have one script.
$jUnit = Join-Path $env:TEMP 'self-test-junit-0.xml'
$tests = @(
'^assets'
'^autoupdate'
'^dynamic import.*development'
'client refresh for application code'
) -Join '|'
Write-Host "Running: $tests" -ForegroundColor Yellow
Write-Host "Excluded: $env:SELF_TEST_EXCLUDE" -ForegroundColor Yellow
.\meteor.bat self-test `
--retries 2 `
--junit "$jUnit" `
--exclude "$env:SELF_TEST_EXCLUDE" `
"$tests" `
'2>&1'
$selfTestExitCode = $LASTEXITCODE
If ($selfTestExitCode -eq 0) {
Write-Host "Success!" -ForegroundColor Green
} else {
Write-Host "FAILURE! (Exit: $selfTestExitCode)" -ForegroundColor Red
}
If ($selfTestExitCode -ne 0) {
Exit $selfTestExitCode
}