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