Add appveyor.yml (poetry, pytest, pyinstaller)

pull/357/head
nyanpasu64 2018-12-20 17:56:24 -08:00
rodzic 222426d0df
commit 004d161cf6
2 zmienionych plików z 50 dodań i 0 usunięć

Wyświetl plik

50
appveyor.yml 100644
Wyświetl plik

@ -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'