mirror of https://github.com/Syncplay/syncplay
64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
branches:
|
|
only:
|
|
- master
|
|
|
|
environment:
|
|
MINICONDA: "C:\\Miniconda"
|
|
PYTHON: "C:\\Python36"
|
|
PYTHON_VERSION: 3.6
|
|
PYTHON_ARCH: 32
|
|
|
|
platform: x86
|
|
|
|
configuration: Release
|
|
|
|
init:
|
|
- set PYTHONPATH=%PYTHON%
|
|
- set PYTHONHOME=%PYTHON%
|
|
- set PATH=%PYTHON%\Scripts;%PYTHON%;C:\Program Files (x86)\NSIS;%PATH%
|
|
- python --version
|
|
- python -m pip install -U pip setuptools wheel
|
|
- pip install -U pypiwin32==223
|
|
- pip install twisted[tls] certifi
|
|
- pip install zope.interface
|
|
- type nul > %PYTHON%\lib\site-packages\zope\__init__.py
|
|
- pip install py2exe
|
|
- pip install shiboken2==5.12.3 PySide2==5.12.3
|
|
- pip freeze
|
|
|
|
install:
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
- for /F "tokens=2 delims='" %%a in ('findstr version syncplay\__init__.py') do @set ver=%%a
|
|
- python buildPy2exe.py
|
|
- type nul > syncplay_v%ver%\syncplay.ini
|
|
|
|
# Not a project with an msbuild file, build done at install.
|
|
build: off
|
|
|
|
artifacts:
|
|
- path: 'syncplay_v$(ver)'
|
|
type: zip
|
|
name: Syncplay_$(ver)_Portable
|
|
|
|
- path: Syncplay-$(ver)-Setup.exe
|
|
name: Syncplay-$(ver)-Setup
|
|
|
|
# Push artefact to S3 bucket and list all
|
|
before_deploy:
|
|
- dir
|
|
#- python -c "from PySide2 import QtCore; print QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.PluginsPath)"
|
|
|
|
|
|
# Deploy build to BinTray
|
|
deploy:
|
|
provider: BinTray
|
|
username: etoh
|
|
api_key:
|
|
secure: TfwB161OlDOcAz5nnmjtNjDmJw2KyCz/uB1KzN4r5/9AL3uczWNuY+k6qVGaRvOP
|
|
repo: Syncplay
|
|
package: Syncplay
|
|
subject: syncplay
|
|
version: v$(ver)
|
|
publish: true
|
|
override: true
|