mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
add up-to-date windows scripts
This commit is contained in:
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user