forked from FAForever/client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
72 lines (64 loc) · 3.24 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
66
67
68
69
70
71
72
# GITHUB_TOKEN env var defined in appveyor project
# GITHUB_USER env var defined in appveyor project
environment:
global:
GITHUB_USER: faf-bot
GITHUB_TOKEN:
secure: Np481CGoJvTGB8O5rZTRswUZagGv7WtWT/TXTABQ184xUbL5vj9NoCtmtNRK6YxF
UID_VERSION: v4.0.4
matrix:
- PYTHON: "C:\\Python36"
PYWHEEL_INFIX: "cp36"
init:
- "ECHO %PYTHON% %APPVEYOR_REPO_TAG_NAME%"
install:
# dump version
- git describe --tags --always
# install dependencies using pip
- "%PYTHON%\\Scripts\\pip install pyqt5==5.7.1"
- "%PYTHON%\\Scripts\\pip install https://github.com/FAForever/python-wheels/releases/download/2.0.0/pywin32-221-%PYWHEEL_INFIX%-%PYWHEEL_INFIX%m-win32.whl"
- "%PYTHON%\\Scripts\\pip install wheel"
- "%PYTHON%\\Scripts\\pip install pytest"
- "%PYTHON%\\Scripts\\pip install cx_Freeze==5.0.2"
- "%PYTHON%\\Scripts\\pip install -r requirements.txt --trusted-host content.faforever.com"
# copy required dlls for packaging in setup.py
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\plugins\\imageformats .\\imageformats /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\plugins\\platforms .\\platforms /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\plugins\\audio .\\audio /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\bin\\libeay32.dll ."
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\bin\\ssleay32.dll ."
- "xcopy %PYTHON%\\lib\\site-packages\\pywin32_system32\\pywintypes36.dll ."
- "xcopy %PYTHON%\\lib\\site-packages\\pywin32_system32\\pythoncom36.dll ."
# for QtwebEngine until we get rid of it
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\bin\\QtWebEngineProcess.exe . /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\bin\\Qt5WebEngine.dll . /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\bin\\Qt5WebEngineCore.dll . /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\bin\\Qt5WebEngineWidgets.dll . /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\bin\\Qt5WebChannel.dll . /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\bin\\libEGL.dll . /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\bin\\libGLESv2.dll . /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\resources\\icudtl.dat . /I"
- "xcopy %PYTHON%\\lib\\site-packages\\PyQt5\\Qt\\resources\\qtwebengine_resources.pak . /I" # Needed for JS to work
- ps: "$env:faf_version = \"$(&C:\\Python36\\python .\\src\\config\\version.py)\".Replace(' ','')"
- ps: "$env:APPVEYOR_BUILD_VERSION = \"$($env:faf_version)$($env:APPVEYOR_BUILD_NUMBER)\""
- ps: "Write-Host \"$($env:faf_version) + $($env:APPVEYOR_BUILD_NUMBER) = $($env:APPVEYOR_BUILD_VERSION)\""
- ps: "$env:PYTEST_QT_API=\"pyqt5\""
- ps: "$env:FAF_FORCE_PRODUCTION=true"
- ps: "Invoke-WebRequest -Uri \"https://github.com/FAForever/uid/releases/download/$($env:UID_VERSION)/faf-uid.exe\" -OutFile \".\\lib\\faf-uid.exe\""
test_script:
- "%PYTHON%\\python runtests.py -vv --full-trace"
after_test:
- "%PYTHON%\\python setup.py bdist_msi"
artifacts:
- path: '**\*.msi'
deploy:
- provider: GitHub
release: $(appveyor_build_version)
auth_token:
secure: "09WRxoB8lu9lPzuk3qYu0brKVQubLpnsS1Wdn49nYZYi5RDiva3z37eITcjtZkTD"
artifact: /.*\.msi/
draft: true
prerelease: true
on:
appveyor_repo_tag: true
build: off