borg/appveyor.yml

26 lines
960 B
YAML

version: '{build}'
environment:
matrix:
- compiler: msys2
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MINGW: MINGW64
install:
- 'SET PATH=C:\%MSYS2_DIR%\usr\bin;C:\%MSYS2_DIR%\%MINGW%\bin;%PATH%'
- 'bash -lc "pacman --noprogressbar --noconfirm --needed -S mingw-w64-%MSYS2_ARCH%-{python3,gcc,lz4,python3-pip,cython,ntldd-git} git openssl"'
- 'bash -lc "python3 -m pip install -U pip"'
- 'pip3 install -r requirements.d/development.txt'
- 'pip3 install setuptools_scm'
build_script:
- ps: $version = git describe --long
- ps: Update-AppveyorBuild -Version $version
- 'pip3 install -e .'
- 'python3 deployment/windows/buildwin32.py'
test_script:
# python will return 0 so appveyor will pass the build
- cmd: python3 -c "import pytest;pytest.main('--cov=borg --cov-config=.coveragerc --benchmark-skip --pyargs src/borg/testsuite')"
artifacts:
- path: win32exe
name: windowsbuild
type: zip