aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appveyor.yml7
-rw-r--r--ci/build.ps15
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