Fix pr builds

This commit is contained in:
John Kleinschmidt 2018-05-15 16:54:25 -04:00 committed by Samuel Attard
parent 65b8dd48d8
commit 08ee965270

View file

@ -1,6 +1,5 @@
version: 1.0.{build} version: 1.0.{build}
build_cloud: electron-16 build_cloud: electron-16
skip_branch_with_pr: true
image: electron-16-vs2017 image: electron-16-vs2017
environment: environment:
DISABLE_CRASH_REPORTER_TESTS: true DISABLE_CRASH_REPORTER_TESTS: true
@ -9,6 +8,10 @@ environment:
- TARGET_ARCH: x64 - TARGET_ARCH: x64
build_script: build_script:
- ps: >- - ps: >-
if(($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME -split "/")[0] -eq ($env:APPVEYOR_REPO_NAME -split "/")[0]) {
Write-warning "Skipping PR build for branch"; Exit-AppveyorBuild
} else {
Add-Path "$env:ProgramFiles (x86)\Windows Kits\10\Debuggers\x64" Add-Path "$env:ProgramFiles (x86)\Windows Kits\10\Debuggers\x64"
$env:path = "$env:ProgramFiles (x86)\Windows Kits\10\Debuggers\x64;$env:path" $env:path = "$env:ProgramFiles (x86)\Windows Kits\10\Debuggers\x64;$env:path"
@ -30,12 +33,13 @@ build_script:
python script\bootstrap.py --target_arch=$env:TARGET_ARCH --dev python script\bootstrap.py --target_arch=$env:TARGET_ARCH --dev
python script\build.py -c D python script\build.py -c D
} }
if ($? -ne 'True') { if ($? -ne 'True') {
throw "Build failed with exit code $?" throw "Build failed with exit code $?"
} else { } else {
"Build succeeded." "Build succeeded."
} }
}
test_script: test_script:
- ps: >- - ps: >-
if (Test-Path Env:\ELECTRON_RELEASE) { if (Test-Path Env:\ELECTRON_RELEASE) {