2017-10-05 10:27:35 +00:00
|
|
|
environment:
|
|
|
|
MINICONDA: "C:\\Miniconda"
|
|
|
|
|
|
|
|
platform: x86
|
|
|
|
|
|
|
|
configuration: Release
|
|
|
|
|
|
|
|
init:
|
2017-12-25 20:23:03 +00:00
|
|
|
- set PATH=C:\Miniconda;C:\Miniconda\Scripts;C:\Program Files (x86)\NSIS;%PATH%
|
2017-12-25 20:18:16 +00:00
|
|
|
- conda create -n syncplay -y
|
|
|
|
- activate syncplay
|
2018-01-08 14:48:47 +00:00
|
|
|
- conda install python pywin32 -y
|
|
|
|
- conda install -c conda-forge pyside2 -y
|
2017-12-25 20:23:03 +00:00
|
|
|
- pip install twisted py2exe_py2 zope.interface
|
2017-12-25 20:18:16 +00:00
|
|
|
- type nul > C:\Miniconda\envs\syncplay\lib\site-packages\zope\__init__.py
|
2017-12-25 20:23:03 +00:00
|
|
|
- pip freeze
|
2017-12-25 20:18:16 +00:00
|
|
|
- conda list
|
2017-10-05 10:27:35 +00:00
|
|
|
|
|
|
|
install:
|
2017-12-25 20:18:16 +00:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2017-12-25 20:23:03 +00:00
|
|
|
- for /F "tokens=2 delims='" %%a in ('findstr version syncplay\__init__.py') do @set ver=%%a
|
|
|
|
- python buildPy2exe.py
|
2018-01-08 14:48:47 +00:00
|
|
|
- del syncplay_v%ver%\lib\api-*
|
|
|
|
- del syncplay_v%ver%\lib\DNSAPI.dll
|
|
|
|
- del syncplay_v%ver%\lib\IPHLPAPI.dll
|
2017-12-25 20:23:03 +00:00
|
|
|
- del syncplay_v%ver%\lib\MPR.dll
|
|
|
|
- mkdir syncplay_v%ver%\platforms
|
2018-01-08 15:08:38 +00:00
|
|
|
- copy C:\Miniconda\envs\syncplay\library\plugins\platforms\qwindows.dll syncplay_v%ver%\platforms\
|
2017-10-05 10:27:35 +00:00
|
|
|
|
|
|
|
# Not a project with an msbuild file, build done at install.
|
|
|
|
build: off
|
|
|
|
|
|
|
|
artifacts:
|
2017-12-25 20:23:03 +00:00
|
|
|
- path: 'syncplay_v$(ver)'
|
|
|
|
type: zip
|
2018-01-08 14:48:47 +00:00
|
|
|
name: Syncplay-$(ver)-win-pyside2
|
2017-12-25 20:23:03 +00:00
|
|
|
|
|
|
|
- path: Syncplay-$(ver)-Setup.exe
|
2018-01-08 14:48:47 +00:00
|
|
|
name: Syncplay-$(ver)-win-setup-pyside2
|
2017-10-05 10:27:35 +00:00
|
|
|
|
|
|
|
# Push artefact to S3 bucket and list all
|
|
|
|
before_deploy:
|
2017-12-25 20:18:16 +00:00
|
|
|
- dir
|
|
|
|
#- python -c "from PySide2 import QtCore; print QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.PluginsPath)"
|
2017-12-25 20:11:01 +00:00
|
|
|
|
2017-10-05 10:27:35 +00:00
|
|
|
|
2017-10-07 20:02:59 +00:00
|
|
|
# Deploy build to BinTray
|
2017-10-05 10:27:35 +00:00
|
|
|
deploy:
|
2017-10-07 20:02:59 +00:00
|
|
|
provider: BinTray
|
|
|
|
username: alby128
|
|
|
|
api_key:
|
|
|
|
secure: lAocj5KA9Z9x4BefQBIgNlQJbeW4qPBfCgYVBHMyOP3NgyhnMLmvR57ZCqtCKBlQ
|
|
|
|
subject: alby128
|
|
|
|
repo: Syncplay
|
|
|
|
package: Syncplay
|
2017-10-15 15:16:23 +00:00
|
|
|
version: "test"
|
2017-10-07 20:02:59 +00:00
|
|
|
publish: true
|
2017-12-25 20:11:01 +00:00
|
|
|
override: true
|
2018-01-08 13:18:49 +00:00
|
|
|
|