forked from google/breakpad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
219 lines (194 loc) · 8.19 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
version: '{build}'
branches:
# whitelist
only:
- master
environment:
ARTIFACT_VERSION: 1.0.0
repos_url:
secure: wbMaKKMl/4jSAM/lB2wiESwbEs53q7vO8KO8QT/EdH6Tr3ZVtUxsYZSV7OpaYAPY
repos_uid:
secure: IYKu7Mmdx2GXqwxzp/IQNg==
repos_pwd:
secure: 2xpsiuGNHwFPtxdh8pA/Mm0I1bC1EfC8NBSoxOEiNco=
matrix:
- MY_NAME: Linux Debug 64bit
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu
BUILD_CONFIGURATION: debug
BUILD_ARCH: x86_64
ARTIFACT_NAME: inac-breakpad-linux
GCLIENT_FOLDER: /home/appveyor/projects/breakpad/src
- MY_NAME: Linux Release 64bit
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu
BUILD_CONFIGURATION: release
BUILD_ARCH: x86_64
ARTIFACT_NAME: inac-breakpad-linux
GCLIENT_FOLDER: /home/appveyor/projects/breakpad/src
- MY_NAME: Windows VS 2015 Debug 32bit
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VSINSTALL: "Microsoft Visual Studio 14.0\\VC"
GYP_MSVS_VERSION: 2015
MSVC_PLATFORM: x86
BUILD_PLATFORM: Win32
BUILD_CONFIGURATION: debug
BUILD_ARCH: x86
ARTIFACT_NAME: inac-breakpad-windows_vs15
GCLIENT_FOLDER: c:\projects\breakpad\src
- MY_NAME: Windows VS 2015 Release 32bit
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VSINSTALL: "Microsoft Visual Studio 14.0\\VC"
GYP_MSVS_VERSION: 2015
MSVC_PLATFORM: x86
BUILD_PLATFORM: Win32
BUILD_CONFIGURATION: release
BUILD_ARCH: x86
ARTIFACT_NAME: inac-breakpad-windows_vs15
GCLIENT_FOLDER: c:\projects\breakpad\src
- MY_NAME: Windows VS 2015 Debug 64bit
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VSINSTALL: "Microsoft Visual Studio 14.0\\VC"
GYP_MSVS_VERSION: 2015
MSVC_PLATFORM: amd64
BUILD_PLATFORM: x64
BUILD_CONFIGURATION: debug
BUILD_ARCH: x86_64
ARTIFACT_NAME: inac-breakpad-windows_vs15
GCLIENT_FOLDER: c:\projects\breakpad\src
- MY_NAME: Windows VS 2015 Release 64bit
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VSINSTALL: "Microsoft Visual Studio 14.0\\VC"
GYP_MSVS_VERSION: 2015
MSVC_PLATFORM: amd64
BUILD_PLATFORM: x64
BUILD_CONFIGURATION: release
BUILD_ARCH: x86_64
ARTIFACT_NAME: inac-breakpad-windows_vs15
GCLIENT_FOLDER: c:\projects\breakpad\src
- MY_NAME: Windows VS 2017 Debug 32bit
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build"
GYP_MSVS_VERSION: 2017
MSVC_PLATFORM: x86
BUILD_PLATFORM: Win32
BUILD_CONFIGURATION: debug
BUILD_ARCH: x86
ARTIFACT_NAME: inac-breakpad-windows_vs17
GCLIENT_FOLDER: c:\projects\breakpad\src
- MY_NAME: Windows VS 2017 Release 32bit
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build"
GYP_MSVS_VERSION: 2017
MSVC_PLATFORM: x86
BUILD_PLATFORM: Win32
BUILD_CONFIGURATION: release
BUILD_ARCH: x86
ARTIFACT_NAME: inac-breakpad-windows_vs17
GCLIENT_FOLDER: c:\projects\breakpad\src
- MY_NAME: Windows VS 2017 Debug 64bit
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build"
GYP_MSVS_VERSION: 2017
MSVC_PLATFORM: amd64
BUILD_PLATFORM: x64
BUILD_CONFIGURATION: debug
BUILD_ARCH: x86_64
ARTIFACT_NAME: inac-breakpad-windows_vs17
GCLIENT_FOLDER: c:\projects\breakpad\src
- MY_NAME: Windows VS 2017 Release 64bit
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build"
GYP_MSVS_VERSION: 2017
MSVC_PLATFORM: amd64
BUILD_PLATFORM: x64
BUILD_CONFIGURATION: release
BUILD_ARCH: x86_64
ARTIFACT_NAME: inac-breakpad-windows_vs17
GCLIENT_FOLDER: c:\projects\breakpad\src
matrix:
fast_finish: false
clone_folder: $(GCLIENT_FOLDER)
# Before checkout.
init:
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%\..\..
appveyor DownloadFile https://storage.googleapis.com/chrome-infra/depot_tools.zip
7z -bd x depot_tools.zip -odepot_tools
depot_tools\update_depot_tools
cd %APPVEYOR_BUILD_FOLDER%
# After checkout.
install:
- sh: |
./scripts/travis-checkout.sh
- cmd: |
PATH C:\projects\depot_tools;%PATH%
cd %APPVEYOR_BUILD_FOLDER%\..
gclient config https://%APPVEYOR_REPO_PROVIDER%.com/%APPVEYOR_REPO_NAME% --unmanaged --name=src
gclient sync
build_script:
- sh: |
./scripts/travis-build.sh
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%
msbuild src\client\windows\breakpad_client.sln /p:Configuration=%BUILD_CONFIGURATION% /p:Platform=%BUILD_PLATFORM% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /m /verbosity:normal
msbuild src\tools\windows\tools_windows.sln /p:Configuration=%BUILD_CONFIGURATION% /p:Platform=%BUILD_PLATFORM% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /m /verbosity:normal
msbuild src\inaos\inaos-tools.sln /p:Configuration=%BUILD_CONFIGURATION% /p:Platform=%BUILD_PLATFORM% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /m /verbosity:normal
after_build:
- sh: |
cd $APPVEYOR_BUILD_FOLDER
folder=$ARTIFACT_NAME-$BUILD_ARCH-$BUILD_CONFIGURATION-$ARTIFACT_VERSION
mkdir dist
mkdir dist/$folder
mkdir dist/$folder/bin
mkdir dist/$folder/lib
mkdir dist/$folder/include
cp $APPVEYOR_BUILD_FOLDER/src/tools/linux/dump_syms/dump_syms dist/$folder/bin
cp $APPVEYOR_BUILD_FOLDER/src/processor/microdump_stackwalk dist/$folder/bin
cp $APPVEYOR_BUILD_FOLDER/src/processor/minidump_dump dist/$folder/bin
cp $APPVEYOR_BUILD_FOLDER/src/processor/minidump_stackwalk dist/$folder/bin
cp $APPVEYOR_BUILD_FOLDER/src/client/linux/libbreakpad_client.a dist/$folder/lib/libinac-breakpad-client.a
cp $APPVEYOR_BUILD_FOLDER/src/libbreakpad.a dist/$folder/lib/libinac-breakpad.a
cd src
find . -name '*.h' -exec cp --parents \{\} ../dist/$folder/include \;
cd ..
cd dist; zip -r $ARTIFACT_NAME-$BUILD_ARCH-$BUILD_CONFIGURATION-$ARTIFACT_VERSION.zip *
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%
C:\"Program Files (x86)"\"%VSINSTALL%"\vcvarsall.bat %MSVC_PLATFORM%
set folder=%ARTIFACT_NAME%-%BUILD_ARCH%-%BUILD_CONFIGURATION%-%ARTIFACT_VERSION%
mkdir dist
mkdir dist\%folder%
mkdir dist\%folder%\bin
mkdir dist\%folder%\lib
mkdir dist\%folder%\include
cp src\tools\windows\%BUILD_CONFIGURATION%\dump_syms.exe dist\%folder%\bin\
cp src\inaos\%BUILD_CONFIGURATION%\minidump-stackwalk.exe dist\%folder%\bin\
robocopy .\src\ .\dist\%folder%\include *.h -S & exit 0
lib /out:dist\%folder%\lib\inac-breakpad.lib src\client\windows\%BUILD_CONFIGURATION%\lib\common.lib src\client\windows\%BUILD_CONFIGURATION%\lib\crash_generation_client.lib src\client\windows\%BUILD_CONFIGURATION%\lib\exception_handler.lib
cd dist
7z a -mm=Deflate -r %ARTIFACT_NAME%-%BUILD_ARCH%-%BUILD_CONFIGURATION%-%ARTIFACT_VERSION%.zip *
cd ..
artifacts:
- path: dist/*.zip
name: breakpad
deploy_script:
- ps: |
$src = $artifacts["breakpad"].path
$artifact_name = Split-Path $src -leaf
$artifact_name -match "(\d+\.\d+)"
$artifact_version = $matches[1]
$target = "inaos/inac-breakpad/$artifact_version/$artifact_name"
Write-Host $src
Write-Host $artifact_name
Write-Host $artifact_version
Write-Host $target
Write-Host $Env:OS
$user = $env:repos_uid
$pwd = $env:repos_pwd
$url = "$env:repos_url/$target"
if ($Env:OS -eq "Windows_NT") {
Write-Host "curl.exe -u${user}:${pwd} -T $src $url"
$ret = curl.exe "-u${user}:${pwd}" "-T" $src $url 2>1
} else {
$ret = /usr/bin/curl "-u${user}:${pwd}" "-T" $src $url 2>1
}
$LastExitCode = 0