docs: move rate_cycle description
[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 7 CYG_MIRROR: http://cygwin.mirror.constant.com
349cdc89 8 matrix:
699bc19b
VF
9# --disable-tls for the msys2 build to work around
10# breakage with clang/lld 16.0.0-1
dc8aed22
SW
11 - ARCHITECTURE: x64
12 CC: clang
699bc19b 13 CONFIGURE_OPTIONS: --enable-pdb --disable-tls
dc8aed22
SW
14 DISTRO: msys2
15# Skip 32 bit clang build
16# - ARCHITECTURE: x86
17# CC: clang
18# CONFIGURE_OPTIONS: --enable-pdb
19# DISTRO: msys2
20 - ARCHITECTURE: x64
349cdc89 21 CONFIGURE_OPTIONS:
dc8aed22
SW
22 DISTRO: cygwin
23 - ARCHITECTURE: x86
26dcc084 24 CONFIGURE_OPTIONS: --build-32bit-win
dc8aed22 25 DISTRO: cygwin
349cdc89 26
5580d200 27install:
dc8aed22
SW
28 - if %DISTRO%==cygwin (
29 SET "PATH=C:\cygwin64\bin;C:\cygwin64;%PATH%"
30 )
31 - if %DISTRO%==msys2 if %ARCHITECTURE%==x86 (
32 SET "PATH=C:\msys64\mingw32\bin;C:\msys64\usr\bin;%PATH%"
33 )
34 - if %DISTRO%==msys2 if %ARCHITECTURE%==x64 (
35 SET "PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%"
36 )
37 - SET PATH=C:\Python38-x64;%PATH% # NB: Changed env variables persist to later sections
f41f4fbe 38 - SET PYTHONUNBUFFERED=TRUE
dc8aed22 39 - bash.exe ci\appveyor-install.sh
5580d200 40
349cdc89 41build_script:
dc8aed22
SW
42 - bash.exe configure --extra-cflags=-Werror --disable-native %CONFIGURE_OPTIONS%
43 - make.exe -j2
349cdc89
SW
44
45after_build:
2a41020a
SW
46 - file.exe fio.exe
47 - make.exe test
dc8aed22 48 - 'cd os\windows && dobuild.cmd %ARCHITECTURE% && cd ..'
b832240d 49 - ls.exe ./os/windows/*.msi
2a41020a 50 - ps: Get-ChildItem .\os\windows\*.msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName fio.msi }
349cdc89
SW
51
52test_script:
dc8aed22 53 - python.exe t/run-fio-tests.py --artifact-root test-artifacts --debug
349cdc89 54
13ceeb09
VF
55deploy:
56 - provider: GitHub
57 description: fio Windows installer
58 auth_token: # encrypted token from GitHub
59 secure: Tjj+xRQEV25P6dQgboUblTCKx/LtUOUav2bvzSCtwMhHMAxrrn2adod6nlTf0ItV
60 artifact: fio.msi # upload installer to release assets
61 draft: false
62 prerelease: false
63 on:
13ceeb09
VF
64 APPVEYOR_REPO_TAG: true # deploy on tag push only
65 DISTRO: cygwin
66
75fdb108
VF
67on_finish:
68 - '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'