build: fix doc-only early exit on Appveyor (#38547)
This commit is contained in:
parent
9ffffdb6ef
commit
d818f35ad4
2 changed files with 16 additions and 8 deletions
|
@ -68,9 +68,11 @@ for:
|
||||||
node script/yarn.js install --frozen-lockfile
|
node script/yarn.js install --frozen-lockfile
|
||||||
node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER
|
node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER
|
||||||
if ($LASTEXITCODE -eq 0) {
|
if ($LASTEXITCODE -eq 0) {
|
||||||
Write-warning "Skipping build for doc only change"; Exit-AppveyorBuild
|
Write-warning "Skipping build for doc only change"
|
||||||
|
Exit-AppveyorBuild
|
||||||
|
} else {
|
||||||
|
$global:LASTEXITCODE = 0
|
||||||
}
|
}
|
||||||
$global:LASTEXITCODE = 0
|
|
||||||
- cd ..
|
- cd ..
|
||||||
- ps: Write-Host "Building $env:GN_CONFIG build"
|
- ps: Write-Host "Building $env:GN_CONFIG build"
|
||||||
- git config --global core.longpaths true
|
- git config --global core.longpaths true
|
||||||
|
@ -222,9 +224,11 @@ for:
|
||||||
node script/yarn.js install --frozen-lockfile
|
node script/yarn.js install --frozen-lockfile
|
||||||
node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER
|
node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER
|
||||||
if ($LASTEXITCODE -eq 0) {
|
if ($LASTEXITCODE -eq 0) {
|
||||||
Write-warning "Skipping build for doc only change"; Exit-AppveyorBuild
|
Write-warning "Skipping build for doc only change"
|
||||||
|
Exit-AppveyorBuild
|
||||||
|
} else {
|
||||||
|
$global:LASTEXITCODE = 0
|
||||||
}
|
}
|
||||||
$global:LASTEXITCODE = 0
|
|
||||||
- cd ..
|
- cd ..
|
||||||
- mkdir out\Default
|
- mkdir out\Default
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
12
appveyor.yml
12
appveyor.yml
|
@ -66,9 +66,11 @@ for:
|
||||||
node script/yarn.js install --frozen-lockfile
|
node script/yarn.js install --frozen-lockfile
|
||||||
node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER
|
node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER
|
||||||
if ($LASTEXITCODE -eq 0) {
|
if ($LASTEXITCODE -eq 0) {
|
||||||
Write-warning "Skipping build for doc only change"; Exit-AppveyorBuild
|
Write-warning "Skipping build for doc only change"
|
||||||
|
Exit-AppveyorBuild
|
||||||
|
} else {
|
||||||
|
$global:LASTEXITCODE = 0
|
||||||
}
|
}
|
||||||
$global:LASTEXITCODE = 0
|
|
||||||
- cd ..
|
- cd ..
|
||||||
- ps: Write-Host "Building $env:GN_CONFIG build"
|
- ps: Write-Host "Building $env:GN_CONFIG build"
|
||||||
- git config --global core.longpaths true
|
- git config --global core.longpaths true
|
||||||
|
@ -218,9 +220,11 @@ for:
|
||||||
node script/yarn.js install --frozen-lockfile
|
node script/yarn.js install --frozen-lockfile
|
||||||
node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER
|
node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER
|
||||||
if ($LASTEXITCODE -eq 0) {
|
if ($LASTEXITCODE -eq 0) {
|
||||||
Write-warning "Skipping build for doc only change"; Exit-AppveyorBuild
|
Write-warning "Skipping build for doc only change"
|
||||||
|
Exit-AppveyorBuild
|
||||||
|
} else {
|
||||||
|
$global:LASTEXITCODE = 0
|
||||||
}
|
}
|
||||||
$global:LASTEXITCODE = 0
|
|
||||||
- cd ..
|
- cd ..
|
||||||
- mkdir out\Default
|
- mkdir out\Default
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue