mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
* 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>
30 lines
716 B
PowerShell
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
|
|
} |