forked from Syncplay/syncplay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
65 lines (54 loc) · 1.7 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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
- curl -L https://bintray.com/alby128/py2exe/download_file?file_path=py2exe-0.9.3.0-cp36-none-win32.whl -o py2exe-0.9.3.0-cp36-none-win32.whl
- pip install py2exe-0.9.3.0-cp36-none-win32.whl
- del py2exe-0.9.3.0-cp36-none-win32.whl
- 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