2018-12-21 01:56:24 +00:00
|
|
|
#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:
|
2018-12-24 00:44:21 +00:00
|
|
|
- master
|
2018-12-21 01:56:24 +00:00
|
|
|
|
2021-06-14 03:48:48 +00:00
|
|
|
image: Visual Studio 2019
|
2018-12-24 00:49:21 +00:00
|
|
|
shallow_clone: true
|
2018-12-21 01:56:24 +00:00
|
|
|
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/
|
2024-07-09 06:45:26 +00:00
|
|
|
- pydir: 'C:\Python310-x64'
|
2018-12-21 01:56:24 +00:00
|
|
|
global:
|
|
|
|
py: '%pydir%\python.exe'
|
|
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
|
|
|
|
2019-01-11 07:56:37 +00:00
|
|
|
|
2018-12-21 01:56:24 +00:00
|
|
|
cache:
|
2019-01-11 07:56:37 +00:00
|
|
|
- '%LOCALAPPDATA%\pypoetry\Cache -> .appveyor\clear-caches'
|
|
|
|
- '%USERPROFILE%\.poetry -> .appveyor\clear-caches'
|
|
|
|
# \cache\repositories\pypi\
|
|
|
|
# \virtualenvs\xyz-py3.x\
|
2018-12-21 01:56:24 +00:00
|
|
|
|
|
|
|
install:
|
2018-12-24 03:43:20 +00:00
|
|
|
# needed? to fix `appveyor` command
|
|
|
|
- 'set PATH=C:\Program Files\AppVeyor\BuildAgent\;%PATH%'
|
|
|
|
|
2022-09-28 08:57:14 +00:00
|
|
|
- 'curl -sSL https://install.python-poetry.org | %py% -'
|
2023-12-13 06:08:13 +00:00
|
|
|
- 'set PATH=%APPDATA%\Python\Scripts;%PATH%'
|
2018-12-21 01:56:24 +00:00
|
|
|
|
|
|
|
# Prevents: "The current Python version (2.7.15) is not supported by the project (^3.6)"
|
|
|
|
- 'set PATH=%pydir%;%pydir%\bin;%pydir%\Scripts;%PATH%'
|
2022-03-12 18:26:40 +00:00
|
|
|
- 'poetry install -v -E qt5' # don't pass --no-dev
|
2018-12-21 01:56:24 +00:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- exit
|
|
|
|
|
|
|
|
test_script:
|
2019-08-10 22:10:21 +00:00
|
|
|
- 'poetry run black --check .'
|
2022-03-09 11:05:00 +00:00
|
|
|
- 'poetry run pytest --tb=short'
|
2018-12-21 01:56:24 +00:00
|
|
|
|
|
|
|
after_test:
|
2021-06-14 03:48:48 +00:00
|
|
|
# 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.
|
2018-12-21 01:56:24 +00:00
|
|
|
- 'poetry build'
|
2019-01-29 08:24:08 +00:00
|
|
|
- 'poetry run pyinstaller corrscope.spec -y'
|
2018-12-21 01:56:24 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: 'dist\*'
|