add up-to-date windows scripts

This commit is contained in:
Leonardo Venturini
2024-07-29 09:27:43 -04:00
parent 2feca06288
commit 046490f7ff
2 changed files with 4 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
# Appveyor already sets $PLATFORM to exactly what we don't want, so
# Appveyor already sets $PLATFORM to exactly what we don't want, so
# we'll prepend it with 'windows_' if that seems to be the case.
If ($env:PLATFORM -Match '^x86|x64$') {
$env:PLATFORM = "windows_${env:PLATFORM}"
@@ -32,9 +32,8 @@ while ($attempt -gt 0 -and -not $success) {
} else {
$attempt--
}
}
If ($LASTEXITCODE -ne 0) {
throw "Running .\meteor --get-ready failed three times."
}
}

View File

@@ -1,4 +1,4 @@
# For now, we only have one script.
# For now, we only have one script.
$jUnit = Join-Path $env:TEMP 'self-test-junit-0.xml'
$tests = @(
@@ -25,19 +25,6 @@ If ($selfTestExitCode -eq 0) {
Write-Host "FAILURE! (Exit: $selfTestExitCode)" -ForegroundColor Red
}
Write-Host "Uploading JUnit test results..." -ForegroundColor Magenta
$wc = New-Object 'System.Net.WebClient'
Get-ChildItem $env:TEMP 'self-test-junit-*.xml' | Foreach-Object {
Write-Host " - $($_.FullName)" -ForegroundColor Magenta
Write-Host " - as Artifact..." -ForegroundColor Magenta
Push-AppveyorArtifact $_.FullName
Write-Host " - as Test Results..." -ForegroundColor Magenta
$artifactPostUrl = `
"https://ci.appveyor.com/api/testresults/junit/",
$env:APPVEYOR_JOB_ID -Join ''
$wc.UploadFile($artifactPostUrl, ($_.FullName))
}
If ($selfTestExitCode -ne 0) {
Exit $selfTestExitCode
}
}