-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
112 lines (100 loc) · 6.41 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
image:
- Visual Studio 2015
- Visual Studio 2017
clone_folder: c:\projects\UDM
environment:
UDM_PATH: c:\projects\UDM
UDM_3RDPARTY_PATH: c:\projects\UDM-3rdparty
GME_ROOT: c:\Program Files (x86)\GME
install:
# - choco install -y wixtoolset -version 3.9.1208.0
# - ps: (new-object net.webclient).DownloadFile('https://wix.codeplex.com/downloads/get/1421696', 'c:\wix39.exe')
# - c:\wix39.exe -silent
# - type C:\ProgramData\chocolatey\logs\chocolatey.log
# - dir /b/s \ | %windir%\system32\find "WiX Toolset"
# - dir /b/s C:\MinGW
- reg query "HKLM\SOFTWARE\Microsoft\Windows Installer XML" /reg:32
- reg query "HKLM\SOFTWARE\Microsoft\Windows Installer XML\3.11" /reg:32
- ps: (new-object net.webclient).DownloadFile('https://github.com/ksmyth/UDM/tarball/3rdparty', 'c:\3rdparty.tar.gz')
- mkdir c:\projects\UDM-3rdparty && "C:\Program Files\Git\usr\bin\tar.exe" xzf /c/3rdparty.tar.gz -C /c/projects/UDM-3rdparty --strip-components=1
- dir c:\projects\UDM-3rdparty\GME_x64-17.12.6.msi
- msiexec /i c:\projects\UDM-3rdparty\GME_x64-17.12.6.msi /quiet /qn /norestart /log GME_install.log
- type GME_install.log
# - ps: (new-object net.webclient).DownloadFile('https://github.com/ksmyth/pywin32/releases/download/b219/pywin32-219.win32-py2.7.exe', 'c:\pywin32-219.win32-py2.7.exe')
# - python -m easy_install c:\pywin32-219.win32-py2.7.exe
- ps: (new-object net.webclient).DownloadFile('https://nuget-packages.metamorphsoftware.com/CoApp.Tools.Powershell.msi', 'C:\CoApp.Tools.Powershell.msi')
- ps: Start-Process -FilePath msiexec -ArgumentList /i, 'C:\CoApp.Tools.Powershell.msi', /quiet -Wait
- ps: $env:PSModulePath = $env:PSModulePath + ';C:\Program Files (x86)\Outercurve Foundation\Modules'
- ps: Import-Module CoApp
for:
-
matrix:
only:
- image: Visual Studio 2017
build_script:
- ps: (new-object net.webclient).DownloadFile('https://www.python.org/ftp/python/3.9.10/python-3.9.10.exe', 'C:\python-3.9.10.exe')
- start /wait c:\python-3.9.10.exe /quiet InstallAllUsers=1 TargetDir=C:\Python39 DefaultAllUsersTargetDir=C:\Python39 Include_test=0
- ps: (new-object net.webclient).DownloadFile('https://www.python.org/ftp/python/3.9.10/python-3.9.10-amd64.exe', 'C:\python-3.9.10-amd64.exe')
- start /wait c:\python-3.9.10-amd64.exe /quiet InstallAllUsers=1 TargetDir=C:\Python39-x64 DefaultAllUsersTargetDir=C:\Python39-x64 Include_test=0
- ps: (new-object net.webclient).DownloadFile('https://www.python.org/ftp/python/3.10.9/python-3.10.9.exe', 'C:\python-3.10.9.exe')
- start /wait c:\python-3.10.9.exe /quiet InstallAllUsers=1 TargetDir=C:\Python310 DefaultAllUsersTargetDir=C:\Python310 Include_test=0
- ps: (new-object net.webclient).DownloadFile('https://www.python.org/ftp/python/3.10.9/python-3.10.9-amd64.exe', 'C:\python-3.10.9-amd64.exe')
- start /wait c:\python-3.10.9-amd64.exe /quiet InstallAllUsers=1 TargetDir=C:\Python310-x64 DefaultAllUsersTargetDir=C:\Python310-x64 Include_test=0
- ps: (new-object net.webclient).DownloadFile('https://www.python.org/ftp/python/3.11.1/python-3.11.1.exe', 'C:\python-3.11.1.exe')
- start /wait c:\python-3.11.1.exe /quiet InstallAllUsers=1 TargetDir=C:\Python311 DefaultAllUsersTargetDir=C:\Python311 Include_test=0
- ps: (new-object net.webclient).DownloadFile('https://www.python.org/ftp/python/3.11.1/python-3.11.1-amd64.exe', 'C:\python-3.11.1-amd64.exe')
- start /wait c:\python-3.11.1-amd64.exe /quiet InstallAllUsers=1 TargetDir=C:\Python311-x64 DefaultAllUsersTargetDir=C:\Python311-x64 Include_test=0
- msbuild make.msbuild /fl /m /t:BuildVC14;BuildVC14_x64 /p:"VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140";PlatformToolset=v140
- cd src\UdmPython
- c:\Python39\python -m pip install wheel
- c:\Python39\python setup.py bdist_wheel
- c:\Python39-x64\python -m pip install wheel
- c:\Python39-x64\python setup.py bdist_wheel
- c:\Python310\python -m pip install wheel
- c:\Python310\python setup.py bdist_wheel
- c:\Python310-x64\python -m pip install wheel
- c:\Python310-x64\python setup.py bdist_wheel
- c:\Python311\python -m pip install wheel
- c:\Python311\python setup.py bdist_wheel
- c:\Python311-x64\python -m pip install wheel
- c:\Python311-x64\python setup.py bdist_wheel
- cd ..\..
- sha1sum src/UdmPython/dist/*.whl
-
matrix:
only:
- image: Visual Studio 2015
build_script:
- msbuild make.msbuild /fl /m /t:BuildVS9
- pushd WiX && python build_msi.py -a x86 UdmDll UdmSDK_VC9 && popd
- msbuild make.msbuild /fl /m /t:BuildVS11;BuildVS11_x64 /p:"VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110";PlatformToolset=v110
- pushd WiX && python build_msi.py UdmDll_VC11 UdmSDK_VC11 && popd
- msbuild make.msbuild /fl /m /t:BuildVS12;BuildVS12_x64 /p:"VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120";PlatformToolset=v120
- pushd WiX && python build_msi.py UdmDll_VC12 UdmSDK_VC12 && popd
- msbuild make.msbuild /fl /m /t:BuildVC14;BuildVC14_x64 /p:"VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140";PlatformToolset=v140
- pushd WiX && python build_msi.py UdmDll_VC14 UdmSDK_VC14 && popd
- msbuild Projects\Win32\VC10\src\Udm.sln /p:Configuration=Release;Platform=Win32 /fl /m /t:UdmDll
- cd src\UdmPython
- c:\Python27\python -m pip install wheel
- c:\Python27\python setup.py bdist_wheel
- c:\Python35\python -m pip install wheel
- c:\Python35\python setup.py bdist_wheel
- c:\Python36\python -m pip install wheel
- c:\Python36\python setup.py bdist_wheel
- c:\Python37\python -m pip install wheel
- c:\Python37\python setup.py bdist_wheel
- c:\Python38\python -m pip install wheel
- c:\Python38\python setup.py bdist_wheel
- cd ..\..
- sha1sum src/UdmPython/dist/*.whl
- ps: 'Import-Module CoApp; Write-NuGetPackage .\Udm.autopkg'
- ps: 'Import-Module CoApp; Write-NuGetPackage .\Udm-vc140.autopkg'
- sha1sum *nupkg
# need "image: Visual Studio 2017"
# - '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" make.msbuild /m /t:BuildVC15;BuildVC15_x64 /p:"VCTargetsPath=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets";PlatformToolset=v141'
# - ps: 'Import-Module CoApp; Write-NuGetPackage .\Udm-vc141.autopkg'
artifacts:
- path: "*.log"
- path: "*.nupkg"
- path: "WiX/*/*.wixlib"
- path: src/UdmPython/dist/*.whl