t/zbd: Reset all zones before test when max open zones is specified
[fio.git] / .appveyor.yml
1 clone_depth: 1 # NB: this stops FIO-VERSION-GEN making tag based versions
2
3 image:
4   - Visual Studio 2019
5
6 environment:
7   CYG_MIRROR: http://cygwin.mirror.constant.com
8   CYG_ROOT: C:\cygwin64
9   MAKEFLAGS: -j 2
10   matrix:
11     - platform: x64
12       PACKAGE_ARCH: x86_64
13       CONFIGURE_OPTIONS:
14     - platform: x86
15       PACKAGE_ARCH: i686
16       CONFIGURE_OPTIONS: --build-32bit-win --target-win-ver=xp
17
18 install:
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'
20   - SET PATH=C:\Python38-x64;%CYG_ROOT%\bin;%PATH% # NB: Changed env variables persist to later sections
21   - SET PYTHONUNBUFFERED=TRUE
22   - python.exe -m pip install scipy six
23
24 build_script:
25   - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && ./configure --disable-native --extra-cflags=\"-Werror\" ${CONFIGURE_OPTIONS} && make.exe'
26
27 after_build:
28   - file.exe fio.exe
29   - make.exe test
30   - 'cd os\windows && dobuild.cmd %PLATFORM% && cd ..'
31   - ps: Get-ChildItem .\os\windows\*.msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName fio.msi }
32
33 test_script:
34   - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && [ -f fio.exe ] && python.exe t/run-fio-tests.py --artifact-root test-artifacts --debug'
35
36 on_finish:
37   - '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'