corrscope/appveyor.yml

57 wiersze
1.6 KiB
YAML

#Docs: https://www.appveyor.com/docs/appveyor-yml/
#https://github.com/vasole/fisx/blob/master/appveyor.yml
#https://github.com/sdispater/poetry/blob/master/.appveyor.yml
#https://github.com/sdispater/pendulum/blob/master/appveyor.yml
branches:
only:
- master
image: Visual Studio 2019
shallow_clone: true
environment:
matrix:
# For Python versions available on Appveyor, see
# https://www.appveyor.com/docs/windows-images-software/ or
# https://www.appveyor.com/docs/linux-images-software/
- pydir: 'C:\Python38'
- pydir: 'C:\Python38-x64'
global:
py: '%pydir%\python.exe'
APPVEYOR_SAVE_CACHE_ON_ERROR: true
cache:
- '%LOCALAPPDATA%\pypoetry\Cache -> .appveyor\clear-caches'
- '%USERPROFILE%\.poetry -> .appveyor\clear-caches'
# \cache\repositories\pypi\
# \virtualenvs\xyz-py3.x\
install:
# needed? to fix `appveyor` command
- 'set PATH=C:\Program Files\AppVeyor\BuildAgent\;%PATH%'
- 'curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | %py%'
- 'set PATH=%USERPROFILE%\.poetry\bin;%PATH%'
# Prevents: "The current Python version (2.7.15) is not supported by the project (^3.6)"
- 'set PATH=%pydir%;%pydir%\bin;%pydir%\Scripts;%PATH%'
- 'poetry install -v -E qt5' # don't pass --no-dev
build_script:
- exit
test_script:
- 'poetry run black --check .'
- 'poetry run pytest --tb=short'
after_test:
# Run 32-bit PyInstaller to make CI complete faster.
# pyinstaller used to get stuck for minutes on 32-bit builds, but it no longer happens.
- 'poetry build'
- 'poetry run pyinstaller corrscope.spec -y'
artifacts:
- path: 'dist\*'