From dff5138f54cc66a19e642e79cc9f5b064c394e97 Mon Sep 17 00:00:00 2001 From: alby128 Date: Thu, 5 Oct 2017 23:54:03 +0200 Subject: [PATCH] Added Appveyor support --- .appveyor.yml | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + buildPy2exe.py | 2 +- 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 .appveyor.yml diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..a5bb8c7 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,51 @@ +environment: + MINICONDA: "C:\\Miniconda" + clone_folder: c:\projects\syncplay + +image: + - Visual Studio 2013 + +platform: x86 + +configuration: Release + +init: + - set PATH=C:\Miniconda;C:\Miniconda\Scripts;%PATH% + - cmd: conda create -n syncplay -y + - cmd: activate syncplay + - cmd: conda install python pywin32 pyside -y + - cmd: pip install twisted py2exe_py2 zope.interface + - cmd: type nul > C:\Miniconda\envs\syncplay\lib\site-packages\zope\__init__.py + - cmd: pip freeze + - cmd: conda list + +install: + - cmd: cd c:\projects\syncplay + - cmd: python buildPy2exe.py + - cmd: del C:\projects\syncplay\syncplay_v1.5.0\lib\DNSAPI.dll + - cmd: del C:\projects\syncplay\syncplay_v1.5.0\lib\MPR.dll + - cmd: mkdir C:\projects\syncplay\syncplay_v1.5.0\platforms + #- cmd: 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. +build: off + +artifacts: + path: 'syncplay_v1.5.0' + type: zip + name: Syncplay_win_pyside1 + +# Push artefact to S3 bucket and list all +before_deploy: + - cmd: dir + #- cmd: python -c "from PySide2 import QtCore; print QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.PluginsPath)" + +# Deploy build to Amazon S3 bucket +deploy: + provider: S3 + access_key_id: AKIAJS554GLAZJ5L6TUA + secret_access_key: + secure: ZPxgm95K1SIqcFlqwoMWmGpPfctamQhhAedoyCT4RDQM/+VbdFLfEfUtu3rZZeBm + bucket: syncplay + region: eu-central-1 + set_public: true diff --git a/.gitignore b/.gitignore index 6335c67..8309fad 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ syncplay_setup.nsi dist.7z .* !.travis.yml +!.appveyor.yml diff --git a/buildPy2exe.py b/buildPy2exe.py index c7f7650..f4ee45f 100755 --- a/buildPy2exe.py +++ b/buildPy2exe.py @@ -33,7 +33,7 @@ if missingStrings is not None and missingStrings is not "": p = "C:\\Program Files (x86)\\NSIS\\makensis.exe" #TODO: how to move that into proper place, huh NSIS_COMPILE = p if os.path.isfile(p) else "makensis.exe" -OUT_DIR = "syncplay v{}".format(syncplay.version) +OUT_DIR = "syncplay_v{}".format(syncplay.version) SETUP_SCRIPT_PATH = "syncplay_setup.nsi" NSIS_SCRIPT_TEMPLATE = r""" !include LogicLib.nsh