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