diff --git a/appveyor.yml b/appveyor.yml index c967174fc9..0bd7f8d8a8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -64,11 +64,11 @@ for: build_script: - ps: | node script/yarn.js install --frozen-lockfile - $result = node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER --prBranch=$env:APPVEYOR_REPO_BRANCH - Write-Output $result - if ($result.ExitCode -eq 0) { - Write-warning "Skipping build for doc only change"; Exit-AppveyorBuild + node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER --prBranch=$env:APPVEYOR_REPO_BRANCH + if ($LASTEXITCODE -eq 0) { + Write-warning "Skipping tests for doc only change"; Exit-AppveyorBuild } + $global:LASTEXITCODE = 0 - cd .. - ps: Write-Host "Building $env:GN_CONFIG build" - git config --global core.longpaths true @@ -255,11 +255,11 @@ for: build_script: - ps: | node script/yarn.js install --frozen-lockfile - $result = node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER --prBranch=$env:APPVEYOR_REPO_BRANCH - Write-Output $result - if ($result.ExitCode -eq 0) { + node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER --prBranch=$env:APPVEYOR_REPO_BRANCH + if ($LASTEXITCODE -eq 0) { Write-warning "Skipping tests for doc only change"; Exit-AppveyorBuild } + $global:LASTEXITCODE = 0 - ps: | cd .. mkdir out\Default