Adapt wiiaboo's appveyor code

This commit is contained in:
Etoh 2017-12-25 20:18:16 +00:00 committed by GitHub
parent be3a3c6ebc
commit bf00d9e828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,5 @@
environment: environment:
MINICONDA: "C:\\Miniconda" MINICONDA: "C:\\Miniconda"
clone_folder: c:\projects\syncplay
image:
- Visual Studio 2013
platform: x86 platform: x86
@ -11,34 +7,35 @@ configuration: Release
init: init:
- set PATH=C:\Miniconda;C:\Miniconda\Scripts;%PATH% - set PATH=C:\Miniconda;C:\Miniconda\Scripts;%PATH%
- cmd: conda create -n syncplay -y - conda create -n syncplay -y
- cmd: activate syncplay - activate syncplay
- cmd: conda install python pywin32 pyside -y - conda install python pywin32 pyside -y
- cmd: pip install twisted py2exe_py2 zope.interface - pip2 install twisted py2exe_py2 zope.interface
- cmd: type nul > C:\Miniconda\envs\syncplay\lib\site-packages\zope\__init__.py - type nul > C:\Miniconda\envs\syncplay\lib\site-packages\zope\__init__.py
- cmd: pip freeze - pip2 freeze
- cmd: conda list - conda list
- for /f %%a in ('git describe --tags --abbrev^=0 --match^=v*') do set gittagversion=%%a
install: install:
- cmd: cd c:\projects\syncplay - cd %APPVEYOR_BUILD_FOLDER%
- cmd: python buildPy2exe.py - py -2 buildPy2exe.py
- cmd: del C:\projects\syncplay\syncplay_v1.5.1\lib\DNSAPI.dll - del syncplay_%gittagversion%\lib\DNSAPI.dll
- cmd: del C:\projects\syncplay\syncplay_v1.5.1\lib\MPR.dll - del syncplay_%gittagversion%\lib\MPR.dll
- cmd: mkdir C:\projects\syncplay\syncplay_v1.5.1\platforms - mkdir syncplay_%gittagversion%\platforms
#- cmd: copy C:\Miniconda\envs\syncplay\library\plugins\platforms\qwindows.dll C:\projects\syncplay\syncplay_v1.5.1\platforms\ #- copy C:\Miniconda\envs\syncplay\library\plugins\platforms\qwindows.dll C:\projects\syncplay\syncplay_v1.5.0\platforms\
# Not a project with an msbuild file, build done at install. # Not a project with an msbuild file, build done at install.
build: off build: off
artifacts: artifacts:
path: 'syncplay_v1.5.1' path: 'syncplay_$(gittagversion)'
type: zip type: zip
name: Syncplay_win name: Syncplay_win
# Push artefact to S3 bucket and list all # Push artefact to S3 bucket and list all
before_deploy: before_deploy:
- cmd: dir - dir
#- cmd: python -c "from PySide2 import QtCore; print QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.PluginsPath)" #- python -c "from PySide2 import QtCore; print QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.PluginsPath)"
# Deploy build to BinTray # Deploy build to BinTray
deploy: deploy:
@ -46,9 +43,8 @@ deploy:
username: etoh username: etoh
api_key: api_key:
secure: TfwB161OlDOcAz5nnmjtNjDmJw2KyCz/uB1KzN4r5/9AL3uczWNuY+k6qVGaRvOP secure: TfwB161OlDOcAz5nnmjtNjDmJw2KyCz/uB1KzN4r5/9AL3uczWNuY+k6qVGaRvOP
subject: syncplay
repo: Syncplay repo: Syncplay
package: Syncplay-win package: Syncplay-win
version: "1.5.1" version: $(gittagversion)
publish: true publish: true
override: true override: true