syncplay/.appveyor.yml

55 lines
1.4 KiB
YAML
Raw Normal View History

2017-12-25 20:11:01 +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
- conda install python pywin32 pyside -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-12-25 20:11:01 +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
- del syncplay_v%ver%\lib\MPR.dll
- mkdir syncplay_v%ver%\platforms
2017-12-25 20:18:16 +00:00
#- copy C:\Miniconda\envs\syncplay\library\plugins\platforms\qwindows.dll C:\projects\syncplay\syncplay_v1.5.0\platforms\
2017-12-25 20:11:01 +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
name: Syncplay-$(ver)-win
- path: Syncplay-$(ver)-Setup.exe
name: Syncplay-$(ver)-win-setup
2017-12-25 20:11:01 +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-12-25 20:36:45 +00:00
2017-12-25 20:11:01 +00:00
# Deploy build to BinTray
deploy:
provider: BinTray
username: etoh
api_key:
secure: TfwB161OlDOcAz5nnmjtNjDmJw2KyCz/uB1KzN4r5/9AL3uczWNuY+k6qVGaRvOP
repo: Syncplay
2017-12-25 20:32:45 +00:00
package: Syncplay
subject: syncplay
2017-12-25 20:36:45 +00:00
version: v$(ver)
2017-12-25 20:11:01 +00:00
publish: true
override: true