kopia lustrzana https://github.com/corrscope/corrscope
Add appveyor.yml (poetry, pytest, pyinstaller)
rodzic
222426d0df
commit
004d161cf6
|
@ -0,0 +1,50 @@
|
|||
#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:
|
||||
# whitelist
|
||||
only:
|
||||
- appveyor
|
||||
|
||||
image: Visual Studio 2017
|
||||
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:\Python36'
|
||||
- pydir: 'C:\Python37-x64'
|
||||
global:
|
||||
py: '%pydir%\python.exe'
|
||||
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
||||
|
||||
cache:
|
||||
- '%LOCALAPPDATA%\pypoetry\Cache -> .appveyor\clear-caches'
|
||||
# \cache\repositories\pypi\
|
||||
# \virtualenvs\xyz-py3.x\
|
||||
|
||||
install:
|
||||
- 'curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | %py%'
|
||||
- 'refreshenv'
|
||||
|
||||
# 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' # don't pass --no-dev
|
||||
|
||||
build_script:
|
||||
- exit
|
||||
|
||||
test_script:
|
||||
- 'poetry run pytest --tb=short'
|
||||
|
||||
after_test:
|
||||
- 'if not %pydir%==C:\Python36 exit %e%'
|
||||
- 'poetry build'
|
||||
- 'poetry run pyinstaller corrscope.spec -y'
|
||||
|
||||
artifacts:
|
||||
- path: 'dist\*'
|
||||
- path: 'dist\corrscope'
|
Ładowanie…
Reference in New Issue