Merge branch 'github-issue-947' of https://github.com/vincentkfu/fio
[fio.git] / .appveyor.yml
CommitLineData
a2b3cb65
SW
1clone_depth: 1 # NB: this stops FIO-VERSION-GEN making tag based versions
2
349cdc89 3environment:
5580d200
SW
4 CYG_MIRROR: http://cygwin.mirror.constant.com
5 CYG_ROOT: C:\cygwin64
349cdc89
SW
6 MAKEFLAGS: -j 2
7 matrix:
a2b3cb65 8 - platform: x64
5580d200 9 PACKAGE_ARCH: x86_64
349cdc89
SW
10 CONFIGURE_OPTIONS:
11 - platform: x86
5580d200 12 PACKAGE_ARCH: i686
49c289ff 13 CONFIGURE_OPTIONS: --build-32bit-win --target-win-ver=xp
349cdc89 14
5580d200 15install:
07f3e323 16 - '%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 17 - SET PATH=C:\Python38-x64;%CYG_ROOT%\bin;%PATH% # NB: Changed env variables persist to later sections
8403eca6 18 - python.exe -m pip install scipy six
5580d200 19
349cdc89 20build_script:
5b34186f 21 - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && ./configure --disable-native --extra-cflags=\"-Werror\" ${CONFIGURE_OPTIONS} && make.exe'
349cdc89
SW
22
23after_build:
a2b3cb65 24 - cd os\windows && dobuild.cmd %PLATFORM%
349cdc89
SW
25
26test_script:
349cdc89 27 - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && file.exe fio.exe && make.exe test'
c58b33b4 28 - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && python.exe t/run-fio-tests.py --debug'
349cdc89
SW
29
30artifacts:
31 - path: os\windows\*.msi
32 name: msi