X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=.appveyor.yml;h=42b79958d46f20bb667a7c7049dde670aab791ec;hp=e2351be7036898aa91e25311dd0e5bc8cc4c36fb;hb=465767437da1bcf99a375295799d33948d9fc5f0;hpb=f5501dd2e466e53cd606e304f1cb6b0a49b481dc diff --git a/.appveyor.yml b/.appveyor.yml index e2351be7..42b79958 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,35 +1,53 @@ clone_depth: 1 # NB: this stops FIO-VERSION-GEN making tag based versions +image: + - Visual Studio 2019 + environment: CYG_MIRROR: http://cygwin.mirror.constant.com - CYG_ROOT: C:\cygwin64 - MAKEFLAGS: -j 2 matrix: - - platform: x64 - PACKAGE_ARCH: x86_64 + - ARCHITECTURE: x64 + CC: clang + CONFIGURE_OPTIONS: --enable-pdb + DISTRO: msys2 +# Skip 32 bit clang build +# - ARCHITECTURE: x86 +# CC: clang +# CONFIGURE_OPTIONS: --enable-pdb +# DISTRO: msys2 + - ARCHITECTURE: x64 CONFIGURE_OPTIONS: - - platform: x86 - PACKAGE_ARCH: i686 - CONFIGURE_OPTIONS: --build-32bit-win --target-win-ver=xp + DISTRO: cygwin + - ARCHITECTURE: x86 + CONFIGURE_OPTIONS: --build-32bit-win + DISTRO: cygwin install: - - '%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' - - SET PATH=C:\Python38-x64;%CYG_ROOT%\bin;%PATH% # NB: Changed env variables persist to later sections - - python.exe -m pip install scipy six + - if %DISTRO%==cygwin ( + SET "PATH=C:\cygwin64\bin;C:\cygwin64;%PATH%" + ) + - if %DISTRO%==msys2 if %ARCHITECTURE%==x86 ( + SET "PATH=C:\msys64\mingw32\bin;C:\msys64\usr\bin;%PATH%" + ) + - if %DISTRO%==msys2 if %ARCHITECTURE%==x64 ( + SET "PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%" + ) + - SET PATH=C:\Python38-x64;%PATH% # NB: Changed env variables persist to later sections + - SET PYTHONUNBUFFERED=TRUE + - bash.exe ci\appveyor-install.sh build_script: - - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && ./configure --disable-native --extra-cflags=\"-Werror\" ${CONFIGURE_OPTIONS} && make.exe' + - bash.exe configure --extra-cflags=-Werror --disable-native %CONFIGURE_OPTIONS% + - make.exe -j2 after_build: - - cd os\windows && dobuild.cmd %PLATFORM% + - file.exe fio.exe + - make.exe test + - 'cd os\windows && dobuild.cmd %ARCHITECTURE% && cd ..' + - ps: Get-ChildItem .\os\windows\*.msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName fio.msi } test_script: - - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && file.exe fio.exe && make.exe test' - - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && [ -f fio.exe ] && python.exe t/run-fio-tests.py --artifact-root test-artifacts --debug' - - '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' + - python.exe t/run-fio-tests.py --artifact-root test-artifacts --debug -artifacts: - - path: os\windows\*.msi - name: msi - - path: test-artifacts.7z - name: test-artifacts +on_finish: + - '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'