From 1321e8a6df9bb8c23ea3d83a6d7a91997be20cfe Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Fri, 4 May 2018 14:39:39 -0400 Subject: [PATCH] Use vs2017 only vm for CI --- appveyor.yml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000000..6256a4ce92 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,60 @@ +version: 1.0.{build} +build_cloud: electron-16 +skip_branch_with_pr: true +image: electron-16-vs2017 +environment: + DISABLE_CRASH_REPORTER_TESTS: true + - TARGET_ARCH: ia32 + - TARGET_ARCH: x64 +build_script: +- ps: >- + Add-Path "$env:ProgramFiles (x86)\Windows Kits\10\Debuggers\x64" + + $env:path = "$env:ProgramFiles (x86)\Windows Kits\10\Debuggers\x64;$env:path" + + $Message = (git log --format=%B -n 1 HEAD) | Out-String + + if ((Test-Path Env:\RUN_RELEASE_BUILD)) { + $env:ELECTRON_RELEASE = '1' + Write-Output "release build triggered from api" + } + + if ((Test-Path Env:\ELECTRON_RELEASE)) { + Write-Output "Running release build" + python script\bootstrap.py --target_arch=$env:TARGET_ARCH + python script\build.py -c R + python script\create-dist.py + } else { + Write-Output "Running debug build" + python script\bootstrap.py --target_arch=$env:TARGET_ARCH --dev + python script\build.py -c D + } + + if ($? -ne 'True') { + throw "Build failed with exit code $?" + } else { + "Build succeeded." + } +test_script: +- ps: >- + if (Test-Path Env:\ELECTRON_RELEASE) { + Write-Output "Skipping tests for release build" + } else { + Write-Output "Running tests for debug build" + python script\test.py --ci + if ($LASTEXITCODE -ne '0') { + throw "Tests failed with exit code $LASTEXITCODE" + } else { + Write-Output "Tests succeeded." + } + python script\verify-ffmpeg.py + + if ($LASTEXITCODE -ne '0') { + throw "Verify ffmpeg failed with exit code $LASTEXITCODE" + } else { + "Verify ffmpeg succeeded." + } + } +artifacts: +- path: out + name: out