appveyor.yml 972 B

123456789101112131415161718192021222324252627
  1. version: '{build}'
  2. init:
  3. - ps: Update-AppveyorBuild -Version "1.0.3-$($env:appveyor_repo_commit.substring(0,7))"
  4. environment:
  5. matrix:
  6. - compiler: msys2
  7. MSYS2_ARCH: x86_64
  8. MSYS2_DIR: msys64
  9. MINGW: MINGW64
  10. install:
  11. - 'SET PATH=C:\%MSYS2_DIR%\usr\bin;C:\%MSYS2_DIR%\%MINGW%\bin;%PATH%'
  12. - 'bash -lc "pacman --noprogressbar --noconfirm --needed -S mingw-w64-%MSYS2_ARCH%-{python3,gcc,lz4,python3-pip,cython,ntldd-git} git openssl"'
  13. - 'bash -lc "python3 -m pip install -U pip"'
  14. - 'pip3 install -r requirements.d/development.txt'
  15. - 'pip3 install setuptools_scm'
  16. build_script:
  17. - 'pip3 install -e .'
  18. - 'python3 deployment/windows/buildwin32.py'
  19. test_script:
  20. # python will return 0 so appveyor will pass the build
  21. - cmd: python3 -c "import pytest;pytest.main('--cov=borg --cov-config=.coveragerc --benchmark-skip --pyargs src/borg/testsuite')"
  22. artifacts:
  23. - path: win32exe
  24. name: windowsbuild
  25. type: zip