1 #version: '3.0.1.{build}'
3 # When planning updates here, check availability at:
4 # https://www.appveyor.com/docs/windows-images-software/
5 # This is slow, try to keep the number of builds as low as makes sense.
8 # linux builds done in Travis CI for now
14 - downloads -> appveyor.yml
15 - '%LOCALAPPDATA%\pip\Cache'
16 - C:\ProgramData\chocolatey\bin -> appveyor.yml
17 - C:\ProgramData\chocolatey\lib -> appveyor.yml
20 # add python and python user-base to path for pip installs
21 - cmd: .\.appveyor\install.bat
23 # build matrix will be number of images multiplied by each '-' below,
24 # less any exclusions.
25 # split builds into sets of four jobs due to appveyor per-job time limit
29 - WINPYTHON: "Python310"
32 - WINPYTHON: "Python37"
35 - WINPYTHON: "Python38"
38 - WINPYTHON: "Python36"
45 # remove sets of build jobs based on criteria below
46 # to fine tune the number and platforms tested
49 # test python 3.8 on Visual Studio 2017 image
50 - image: Visual Studio 2017
51 WINPYTHON: "Python310"
52 - image: Visual Studio 2017
54 - image: Visual Studio 2017
57 # test python 3.7 on Visual Studio 2019 image
58 - image: Visual Studio 2019
59 WINPYTHON: "Python310"
60 - image: Visual Studio 2019
63 # test python 3.10 on Visual Studio 2022 image
64 - image: Visual Studio 2022
66 - image: Visual Studio 2022
68 - image: Visual Studio 2022
71 # remove some binaries we don't want to be found
73 - ps: .\.appveyor\ignore_git_bins.ps1
79 # exclude VS 10.0 because it hangs the testing until this is resolved:
80 # https://help.appveyor.com/discussions/problems/19283-visual-studio-2010-trial-license-has-expired
81 - ps: .\.appveyor\disable_msvc_10.ps1
83 # setup coverage by creating the coverage config file, and adding coverage
84 # to the sitecustomize so that all python processes start with coverage
85 - ps: .\.appveyor\coverage_setup.ps1
87 # NOTE: running powershell from cmd is intended because
88 # it formats the output correctly
89 - cmd: powershell -Command "& { if($env:COVERAGE -eq 1) { coverage run -p --rcfile=$($env:COVERAGE_PROCESS_START) runtest.py -j 2 -t --exclude-list exclude_list.txt -a } else { C:\\%WINPYTHON%\\python.exe runtest.py -j 2 -t --exclude-list exclude_list.txt -a }; if($LastExitCode -eq 2 -Or $LastExitCode -eq 0) { $host.SetShouldExit(0 )} else {$host.SetShouldExit(1)}}"
91 # run coverage even if there was a test failure
93 - ps: .\.appveyor\coverage_report.ps1
94 # running codecov in powershell causes an error so running in platform
96 - cmd: if %COVERAGE% equ 1 codecov -X gcov --file coverage_xml.xml