mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-27 19:03:59 +00:00
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
version: 2.0.0.dev.2.{build}
|
|
pull_requests:
|
|
do_not_increment_build_number: true
|
|
branches:
|
|
only:
|
|
- master
|
|
- /\d\.[0-9x](\.[0-9x])?/
|
|
skip_branch_with_pr: true
|
|
image: Visual Studio 2015
|
|
init:
|
|
- cmd: >-
|
|
ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
|
|
|
|
SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
|
|
|
|
SET PYTHON_SITE=%PYTHON%\lib\site-packages
|
|
environment:
|
|
CHROMAPRINT_FPCALC_VERSION: 1.4.3
|
|
DISCID_VERSION: 0.6.2
|
|
OPENSSL_VERSION: 1.0.2n
|
|
matrix:
|
|
- PYTHON: C:\Python35-x64
|
|
PYTHON_VERSION: 3.5.6
|
|
PYTHON_ARCH: 64
|
|
- PYTHON: C:\Python36-x64
|
|
PYTHON_VERSION: 3.6.6
|
|
PYTHON_ARCH: 64
|
|
- PYTHON: C:\Python37-x64
|
|
PYTHON_VERSION: 3.7.0
|
|
PYTHON_ARCH: 64
|
|
build_script:
|
|
- cmd: >-
|
|
appveyor DownloadFile https://github.com/acoustid/chromaprint/releases/download/v%CHROMAPRINT_FPCALC_VERSION%/chromaprint-fpcalc-%CHROMAPRINT_FPCALC_VERSION%-windows-x86_64.zip -FileName fpcalc.zip
|
|
|
|
appveyor DownloadFile https://github.com/metabrainz/libdiscid/releases/download/v%DISCID_VERSION%/libdiscid-%DISCID_VERSION%-win64.zip -FileName libdiscid.zip
|
|
|
|
7z x fpcalc.zip -y
|
|
|
|
copy /Y chromaprint-fpcalc-%CHROMAPRINT_FPCALC_VERSION%-windows-x86_64\fpcalc.exe fpcalc.exe
|
|
|
|
7z x libdiscid.zip -y
|
|
|
|
copy /Y discid.dll %PYTHON%
|
|
|
|
pip install -r requirements-build.txt
|
|
|
|
pip install -r requirements-prod.txt
|
|
|
|
copy /Y %PYTHON_SITE%\PyQt5\Qt\bin\ssleay32.dll .
|
|
|
|
copy /Y %PYTHON_SITE%\PyQt5\Qt\bin\libeay32.dll .
|
|
|
|
python setup.py build
|
|
|
|
python setup.py build_ext -i
|
|
|
|
python setup.py test -v
|
|
|
|
pyinstaller picard.spec
|
|
|
|
makensis.exe installer\picard-setup.nsi
|
|
|
|
artifacts:
|
|
- path: installer/*.exe
|
|
deploy: off
|