This repository has been archived by the owner on Jun 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
env.py
209 lines (193 loc) · 6.93 KB
/
env.py
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
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is Mozilla-specific Buildbot steps.
#
# The Initial Developer of the Original Code is
# Mozilla Corporation.
# Portions created by the Initial Developer are Copyright (C) 2007
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Ben Hearsum <[email protected]>
# Rob Campbell <[email protected]>
# Chris Cooper <[email protected]>
# ***** END LICENSE BLOCK *****
MozillaEnvironments = {}
MozillaEnvironments['win32-ref-platform'] = {
"MOZ_TOOLS": 'd:\\mozilla-build\\moztools',
"VSINSTALLDIR": 'D:\\msvs8',
"VS80COMMTOOLS": 'D:\\msvs8\\Common7\\Tools\\',
"VCINSTALLDIR": 'D:\\msvs8\\VC',
"FrameworkDir": 'C:\\WINDOWS\\Microsoft.NET\\Framework',
"FrameworkSDKDir": 'D:\\msvs8\\SDK\\v2.0',
"DevEnvDir": "D:\\msvs8\\VC\\Common7\\IDE",
"MSVCDir": 'D:\\msvs8\\VC',
"PATH": 'd:\\sdks\\v6.0\\bin;' +
'D:\\msvs8\\Common7\\IDE;' +
'D:\\msvs8\\VC\\bin;' +
'C:\\msvs8\\SDK\\bin;' +
'D:\\msvs8\\VC;' +
'D:\\msvs8\\Common7\\Tools;' +
'D:\\msvs8\\Common7\\Tools\\bin;' +
'D:\\mozilla-build\\buildbotve\\scripts;' +
'd:\\mozilla-build\\hg;' +
'd:\\mozilla-build\\moztools\\bin;' +
'd:\\mozilla-build\\msys\\local\\bin;' +
'd:\\mozilla-build\\msys\\bin;' +
'd:\\mozilla-build\\7zip;' +
'd:\\mozilla-build\\upx203w;' +
'd:\\mozilla-build\\python25;' +
'd:\\mozilla-build\\blat261\\full;' +
'd:\\mozilla-build\\info-zip;' +
'd:\\mozilla-build\\wget;' +
'd:\\mozilla-build\\nsis-2.22;',
'D:\\mozilla-build\\nsis-2.33u;' +
'd:\\sdks\\v6.0\\bin'
"INCLUDE": 'D:\\sdks\\v6.0\\include;' +
'D:\\sdks\\v6.0\\include\\atl;' +
'D:\\msvs8\\VC\\ATLMFC\\INCLUDE;' +
'D:\\msvs8\\VC\\INCLUDE;' +
'D:\\msvs8\\VC\\PlatformSDK\\include',
"LIB": 'D:\\sdks\\v6.0\\lib;' +
'D:\\msvs8\\VC\\ATLMFC\\LIB;' +
'D:\\msvs8\\VC\\LIB;' +
'D:\\msvs8\\VC\\PlatformSDK\\lib',
"SDKDIR": 'D:\\sdks\\v6.0'
}
### unittest environments
MozillaEnvironments['linux-unittest'] = {
"MOZ_NO_REMOTE": '1',
"DISPLAY": ':2',
"NO_FAIL_ON_TEST_ERRORS": '1',
"CCACHE_DIR": '/builds/ccache',
"CCACHE_UMASK": '002',
"MOZ_HIDE_RESULTS_TABLE": '1',
"MOZ_NODE_PATH": "/usr/bin/node"
}
MozillaEnvironments['linux64-unittest'] = MozillaEnvironments[
'linux-unittest'].copy()
# Not sure if I need this environment or not :(
MozillaEnvironments['linux-mobile-unittest'] = MozillaEnvironments[
'linux-unittest'].copy()
MozillaEnvironments['macosx-unittest'] = {
"MOZ_NO_REMOTE": '1',
"NO_EM_RESTART": '1',
"XPCOM_DEBUG_BREAK": 'warn',
"NO_FAIL_ON_TEST_ERRORS": '1',
"MOZ_HIDE_RESULTS_TABLE": '1',
"MOZ_NODE_PATH": "/usr/local/bin/node"
}
MozillaEnvironments['macosx64-unittest'] = MozillaEnvironments[
'macosx-unittest'].copy()
MozillaEnvironments['win32-unittest'] = {
"MOZ_NO_REMOTE": '1',
"NO_EM_RESTART": '1',
"MOZ_AIRBAG": '1',
"MOZ_CRASHREPORTER_NO_REPORT": '1',
"XPCOM_DEBUG_BREAK": 'warn',
"VCVARS": 'D:\\msvs8\\VC\\bin\\vcvars32.bat',
"MOZ_MSVCVERSION": '8',
"MOZILLABUILD": 'D:\\mozilla-build',
"MOZILLABUILDDRIVE": 'C:',
"MOZILLABUILDPATH": '\\mozilla-build\\',
"MOZ_TOOLS": 'D:\\mozilla-build\\moztools',
"NO_FAIL_ON_TEST_ERRORS": '1',
"VSINSTALLDIR": 'D:\\msvs8',
"VCINSTALLDIR": 'D:\\msvs8\\VC',
"FrameworkDir": 'C:\\WINDOWS\\Microsoft.NET\\Framework',
"FrameworkVersion": 'v2.0.50727',
"FrameworkSDKDir": 'D:\\msvs8\\SDK\\v2.0',
"MSVCDir": 'D:\\msvs8\\VC',
"DevEnvDir": "D:\\msvs8\\Common7\\IDE",
"LIBPATH": 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727;' +
'D:\\msvs8\\VC\\ATLMFC\\LIB',
"MOZ_HIDE_RESULTS_TABLE": '1'
}
MozillaEnvironments['win64-unittest'] = {
"MOZ_NO_REMOTE": '1',
"NO_EM_RESTART": '1',
"MOZ_CRASHREPORTER_NO_REPORT": '1',
"XPCOM_DEBUG_BREAK": 'warn',
"NO_FAIL_ON_TEST_ERRORS": '1',
"MOZ_HIDE_RESULTS_TABLE": '1'
}
### Talos environments
# platform SDK location. we can build both from one generic template.
# modified from vc8 environment
MozillaEnvironments['win32-perf'] = {
"MOZ_CRASHREPORTER_NO_REPORT": '1',
"MOZ_NO_REMOTE": '1',
"NO_EM_RESTART": '1',
"XPCOM_DEBUG_BREAK": 'warn',
"CYGWINBASE": 'C:\\cygwin',
"PATH": 'C:\\Python24;' +
'C:\\Python24\\Scripts;' +
'C:\\cygwin\\bin;' +
'C:\\WINDOWS\\System32;' +
'C:\\program files\\gnuwin32\\bin;' +
'C:\\WINDOWS;' +
'C:\\mozilla-build\\msys\\bin;' +
'C:\\mozilla-build\\python27;' +
'C:\\mozilla-build\\python27\\Scripts;' +
'C:\\mozilla-build\\info-zip;' +
'C:\\mozilla-build\\wget;' +
'C:\\Program Files (x86)\\GnuWin32\\bin;'
}
MozillaEnvironments['win32-perf-unittest'] = {
"MOZ_CRASHREPORTER_NO_REPORT": '1',
"MOZ_NO_REMOTE": '1',
"NO_EM_RESTART": '1',
"XPCOM_DEBUG_BREAK": 'warn',
"PATH": 'C:\\mozilla-build;' +
'C:\\mozilla-build\\msys\\bin;' +
'C:\\mozilla-build\\msys\\local\\bin;' +
'C:\\mozilla-build\\buildbotve\\scripts;' +
'C:\\mozilla-build\\Python25;' +
'C:\\mozilla-build\\Python25\\Scripts;' +
'C:\\mozilla-build\\hg;' +
'C:\\mozilla-build\\7zip;' +
'C:\\mozilla-build\\upx203w;' +
'C:\\mozilla-build\\info-zip;' +
'C:\\mozilla-build\\wget;' +
# Needed for taskkil.exe to find framedyn.dll
'C:\\WINDOWS\\System32\\Wbem;' +
'C:\\WINDOWS\\System32;' +
'C:\\WINDOWS;'
}
MozillaEnvironments['win64-perf'] = {
"MOZ_CRASHREPORTER_NO_REPORT": '1',
"MOZ_NO_REMOTE": '1',
"NO_EM_RESTART": '1',
"XPCOM_DEBUG_BREAK": 'warn',
}
MozillaEnvironments['linux-perf'] = {
"MOZ_CRASHREPORTER_NO_REPORT": '1',
"MOZ_NO_REMOTE": '1',
"NO_EM_RESTART": '1',
"XPCOM_DEBUG_BREAK": 'warn',
"DISPLAY": ":0",
}
MozillaEnvironments['mac-perf'] = {
"MOZ_NO_REMOTE": '1',
"NO_EM_RESTART": '1',
"XPCOM_DEBUG_BREAK": 'warn',
"MOZ_CRASHREPORTER_NO_REPORT": '1',
# for extracting dmg's
"PAGER": '/bin/cat',
}
MozillaEnvironments['android-unittest'] = {
"MOZ_HIDE_RESULTS_TABLE": '1'
}
MozillaEnvironments['android-perf'] = {
}