aboutsummaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml20
1 files changed, 16 insertions, 4 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 25f87fa457..f722478e15 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -6,8 +6,8 @@ clone_depth: 50
# But we compile using MinGW, not Visual Studio.
# We use these images because they have different Windows versions.
image:
- # Windows Server 2016
- - Visual Studio 2017
+ # Windows Server 2019
+ - Visual Studio 2019
# Windows Server 2012 R2
- Visual Studio 2015
@@ -28,11 +28,11 @@ environment:
matrix:
# Don't keep building failing jobs
fast_finish: true
- # Skip the 32-bit Windows Server 2016 job, and the 64-bit Windows Server
+ # Skip the 32-bit Windows Server 2019 job, and the 64-bit Windows Server
# 2012 R2 job, to speed up the build.
# The environment variables must be listed without the 'environment' tag.
exclude:
- - image: Visual Studio 2017
+ - image: Visual Studio 2019
target: i686-w64-mingw32
compiler_path: mingw32
mingw_prefix: mingw-w64-i686
@@ -100,6 +100,18 @@ test_script:
on_finish:
- ps: >-
+ <# if we failed before install:, these functions won't be defined #>
+ Function Execute-Command ($commandPath)
+ {
+ & $commandPath $args 2>&1
+ if ( $LastExitCode -ne 0 ) {
+ $host.SetShouldExit( $LastExitCode )
+ }
+ }
+ Function Execute-Bash ()
+ {
+ Execute-Command 'c:\msys64\usr\bin\bash' '-e' '-c' $args
+ }
if ($env:compiler -eq "mingw") {
<# use the MSYS2 user binaries to archive failures #>
$oldpath = ${env:Path} -split ';'