From c5e8924f4e72f46679cff52ac075e3eb023883d5 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 7 Apr 2019 14:43:50 +0200 Subject: CI/AppVeyor: do skip-logic earlier #9854 --- appveyor.yml | 7 +++++++ ci/build.ps1 | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 8cf22e0709..23d3a2649a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,6 +8,13 @@ configuration: - MINGW_64 - MINGW_32 - MINGW_64-gcov +init: +- ps: | + # For pull requests, skip some build configurations to save time. + if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT -and $env:CONFIGURATION -match '^(MSVC_64|MINGW_32|MINGW_64-gcov)$') { + $env:APPVEYOR_CACHE_SKIP_SAVE = "true" + Exit-AppVeyorBuild + } matrix: allow_failures: - configuration: MINGW_64-gcov diff --git a/ci/build.ps1 b/ci/build.ps1 index 88eb02a3f4..cd470439f0 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -18,11 +18,6 @@ $nvimCmakeVars = @{ } $uploadToCodeCov = $false -# For pull requests, skip some build configurations to save time. -if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT -and $env:CONFIGURATION -match '^(MSVC_64|MINGW_32|MINGW_64-gcov)$') { - exit 0 -} - function exitIfFailed() { if ($LastExitCode -ne 0) { Set-PSDebug -Off -- cgit