.appveyor.yml: Select the latest software image
[fio.git] / .appveyor.yml
CommitLineData
a2b3cb65
SW
1clone_depth: 1 # NB: this stops FIO-VERSION-GEN making tag based versions
2
79378162
BVA
3image:
4 - Visual Studio 2019
5
349cdc89 6environment:
5580d200
SW
7 CYG_MIRROR: http://cygwin.mirror.constant.com
8 CYG_ROOT: C:\cygwin64
349cdc89
SW
9 MAKEFLAGS: -j 2
10 matrix:
a2b3cb65 11 - platform: x64
5580d200 12 PACKAGE_ARCH: x86_64
349cdc89
SW
13 CONFIGURE_OPTIONS:
14 - platform: x86
5580d200 15 PACKAGE_ARCH: i686
49c289ff 16 CONFIGURE_OPTIONS: --build-32bit-win --target-win-ver=xp
349cdc89 17
5580d200 18install:
07f3e323 19 - '%CYG_ROOT%\setup-x86_64.exe --quiet-mode --no-shortcuts --only-site --site "%CYG_MIRROR%" --packages "mingw64-%PACKAGE_ARCH%-zlib,mingw64-%PACKAGE_ARCH%-CUnit" > NUL'
9f671d87 20 - SET PATH=C:\Python38-x64;%CYG_ROOT%\bin;%PATH% # NB: Changed env variables persist to later sections
8403eca6 21 - python.exe -m pip install scipy six
5580d200 22
349cdc89 23build_script:
5b34186f 24 - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && ./configure --disable-native --extra-cflags=\"-Werror\" ${CONFIGURE_OPTIONS} && make.exe'
349cdc89
SW
25
26after_build:
a2b3cb65 27 - cd os\windows && dobuild.cmd %PLATFORM%
349cdc89
SW
28
29test_script:
349cdc89 30 - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && file.exe fio.exe && make.exe test'
17659028 31 - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && [ -f fio.exe ] && python.exe t/run-fio-tests.py --artifact-root test-artifacts --debug'
349cdc89
SW
32
33artifacts:
34 - path: os\windows\*.msi
35 name: msi
75fdb108
VF
36
37on_finish:
38 - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && [ -d test-artifacts ] && 7z a -t7z test-artifacts.7z test-artifacts -xr!foo.0.0 -xr!latency.?.0 -xr!fio_jsonplus_clat2csv.test && appveyor PushArtifact test-artifacts.7z'