-
Notifications
You must be signed in to change notification settings - Fork 47
/
appveyor.yml
51 lines (43 loc) · 1.63 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
os: Visual Studio 2015
version: '{branch}-b{build}'
environment:
matrix:
- PYTHON: "C:\\Python34"
PYTHON_ARCH: "win32"
PyQT: "http://download.sourceforge.net/project/pyqt/PyQt5/PyQt-5.5/PyQt5-5.5-gpl-Py3.4-Qt5.5.0-x32.exe"
- PYTHON: "C:\\Python34-x64"
PYTHON_ARCH: "win64"
PyQT: "http://download.sourceforge.net/project/pyqt/PyQt5/PyQt-5.5/PyQt5-5.5-gpl-Py3.4-Qt5.5.0-x64.exe"
init:
- ps: "ls -Name \"C:/\""
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
install:
- REG ADD HKCU\Software\Python\PythonCore\3.4\InstallPath /f /ve /t REG_SZ /d %PYTHON%
- git submodule update --init --recursive
- ps: Start-FileDownload $env:PyQT -FileName $env:temp/pyqt5_install.exe
- ps: "& $env:temp/pyqt5_install.exe /S"
- ps: "Wait-Process -Name pyqt5_install -Timeout 600"
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "python -c \"import PyQt5\""
- "pip --version"
- "pip install cx_freeze"
- "pip install Pillow"
build_script:
- cd /D %APPVEYOR_BUILD_FOLDER%
- "python build.py --verbose --with-exe"
- "python build/starcheat.py -v"
- ps: "cp LICENSE dist/"
- cd dist
- IF NOT DEFINED APPVEYOR_REPO_TAG_NAME set APPVEYOR_REPO_TAG_NAME=%APPVEYOR_REPO_COMMIT:~0,7%
- ps: "& 7z a -r starcheat-$env:APPVEYOR_REPO_TAG_NAME-$env:PYTHON_ARCH.zip ."
test: off
artifacts:
- path: dist/starcheat-$(APPVEYOR_REPO_TAG_NAME)-$(PYTHON_ARCH).zip
deploy:
provider: GitHub
auth_token:
secure: ZtfwMzuwFmGDrJhj3T3Nz3s+Nhz7Tw2mLhG15mE0BxDdDZCjwF5qzl9ZMKg20ILK
artifact: dist/starcheat-$(APPVEYOR_REPO_TAG_NAME)-$(PYTHON_ARCH).zip
on:
appveyor_repo_tag: true