| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 DEPS = [ | 5 DEPS = [ |
| 6 'chromium', | 6 'chromium', |
| 7 'depot_tools/bot_update', | 7 'depot_tools/bot_update', |
| 8 'depot_tools/gclient', | 8 'depot_tools/gclient', |
| 9 'file', | 9 'file', |
| 10 'recipe_engine/json', | 10 'recipe_engine/json', |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 'src/v8': 'got_v8_revision'}) | 55 'src/v8': 'got_v8_revision'}) |
| 56 api.gclient.c = src_cfg | 56 api.gclient.c = src_cfg |
| 57 result = api.bot_update.ensure_checkout() | 57 result = api.bot_update.ensure_checkout() |
| 58 build_properties.update(result.json.output.get("properties", {})) | 58 build_properties.update(result.json.output.get("properties", {})) |
| 59 | 59 |
| 60 api.chromium.ensure_goma() | 60 api.chromium.ensure_goma() |
| 61 | 61 |
| 62 # clobber before runhooks | 62 # clobber before runhooks |
| 63 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) | 63 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) |
| 64 | 64 |
| 65 # gclient runhooks wrapper step | 65 # gclient runhooks step |
| 66 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 66 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
| 67 'LANDMINES_VERBOSE': '1', | 67 'LANDMINES_VERBOSE': '1', |
| 68 'DEPOT_TOOLS_UPDATE': '0', | 68 'DEPOT_TOOLS_UPDATE': '0', |
| 69 'GYP_DEFINES': 'fastbuild=1 component=static_library'} | 69 'GYP_DEFINES': 'fastbuild=1 component=static_library'} |
| 70 api.python("gclient runhooks wrapper", | 70 api.chromium.runhooks(env=env) |
| 71 api.path["build"].join("scripts", "slave", | |
| 72 "runhooks_wrapper.py"), | |
| 73 env=env) | |
| 74 | 71 |
| 75 # generate_build_files step | 72 # generate_build_files step |
| 76 api.chromium.run_mb(api.properties.get('mastername'), | 73 api.chromium.run_mb(api.properties.get('mastername'), |
| 77 api.properties.get('buildername')) | 74 api.properties.get('buildername')) |
| 78 | 75 |
| 79 # cleanup_temp step | 76 # cleanup_temp step |
| 80 api.chromium.cleanup_temp() | 77 api.chromium.cleanup_temp() |
| 81 | 78 |
| 82 # compile step | 79 # compile step |
| 83 api.chromium.compile(['chrome']) | 80 api.chromium.compile(['chrome']) |
| 84 | 81 |
| 85 # annotated_steps step | 82 # annotated_steps step |
| 86 api.python( | 83 api.python( |
| 87 "annotated_steps", | 84 "annotated_steps", |
| 88 api.path["build"].join("scripts", "slave", "chromium", | 85 api.path["build"].join("scripts", "slave", "chromium", |
| 89 "nacl_sdk_buildbot_run.py"), | 86 "nacl_sdk_buildbot_run.py"), |
| 90 args= | |
| 91 ['--build-properties=%s' % api.json.dumps(build_properties, | |
| 92 separators=(',', ':')), | |
| 93 '--factory-properties={"annotated_script":"nacl_sdk_buildbot_run.py"'+\ | |
| 94 ',"blink_config":"chromium",'+\ | |
| 95 '"gclient_env":{"CHROMIUM_GYP_SYNTAX_CHECK":"1",'+\ | |
| 96 '"DEPOT_TOOLS_UPDATE":"0","GYP_DEFINES":'+\ | |
| 97 '"fastbuild=1 component=static_library","LANDMINES_VERBOSE":"1"'+\ | |
| 98 '},"no_gclient_branch":true,"nuke_and_pave":false}' | |
| 99 ], | |
| 100 allow_subannotations=True) | 87 allow_subannotations=True) |
| 101 | 88 |
| 102 | 89 |
| 103 def mac_sdk_multi_steps(api): | 90 def mac_sdk_multi_steps(api): |
| 104 build_properties = api.properties.legacy() | 91 build_properties = api.properties.legacy() |
| 105 # update scripts step; implicitly run by recipe engine. | 92 # update scripts step; implicitly run by recipe engine. |
| 106 # bot_update step | 93 # bot_update step |
| 107 src_cfg = api.gclient.make_config() | 94 src_cfg = api.gclient.make_config() |
| 108 soln = src_cfg.solutions.add() | 95 soln = src_cfg.solutions.add() |
| 109 soln.name = "src" | 96 soln.name = "src" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 'src/v8': 'got_v8_revision'}) | 128 'src/v8': 'got_v8_revision'}) |
| 142 api.gclient.c = src_cfg | 129 api.gclient.c = src_cfg |
| 143 result = api.bot_update.ensure_checkout() | 130 result = api.bot_update.ensure_checkout() |
| 144 build_properties.update(result.json.output.get("properties", {})) | 131 build_properties.update(result.json.output.get("properties", {})) |
| 145 | 132 |
| 146 api.chromium.ensure_goma() | 133 api.chromium.ensure_goma() |
| 147 | 134 |
| 148 # clobber before runhooks | 135 # clobber before runhooks |
| 149 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) | 136 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) |
| 150 | 137 |
| 151 # gclient runhooks wrapper step | 138 # gclient runhooks step |
| 152 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 139 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
| 153 'GYP_GENERATORS': 'ninja', | 140 'GYP_GENERATORS': 'ninja', |
| 154 'DEPOT_TOOLS_UPDATE': '0', | 141 'DEPOT_TOOLS_UPDATE': '0', |
| 155 'GYP_DEFINES': 'fastbuild=1 component=static_library', | 142 'GYP_DEFINES': 'fastbuild=1 component=static_library', |
| 156 'LANDMINES_VERBOSE': '1'} | 143 'LANDMINES_VERBOSE': '1'} |
| 157 api.python("gclient runhooks wrapper", | 144 api.chromium.runhooks(env=env) |
| 158 api.path["build"].join("scripts", "slave", | |
| 159 "runhooks_wrapper.py"), | |
| 160 env=env) | |
| 161 | 145 |
| 162 # generate_build_files step | 146 # generate_build_files step |
| 163 api.chromium.run_mb(api.properties.get('mastername'), | 147 api.chromium.run_mb(api.properties.get('mastername'), |
| 164 api.properties.get('buildername')) | 148 api.properties.get('buildername')) |
| 165 | 149 |
| 166 # cleanup_temp step | 150 # cleanup_temp step |
| 167 api.chromium.cleanup_temp() | 151 api.chromium.cleanup_temp() |
| 168 | 152 |
| 169 # compile step | 153 # compile step |
| 170 api.chromium.compile(['chrome']) | 154 api.chromium.compile(['chrome']) |
| 171 | 155 |
| 172 # annotated_steps step | 156 # annotated_steps step |
| 173 api.python( | 157 api.python( |
| 174 "annotated_steps", | 158 "annotated_steps", |
| 175 api.path["build"].join("scripts", "slave", "chromium", | 159 api.path["build"].join("scripts", "slave", "chromium", |
| 176 "nacl_sdk_buildbot_run.py"), | 160 "nacl_sdk_buildbot_run.py"), |
| 177 args= | |
| 178 ['--build-properties=%s' % api.json.dumps(build_properties, | |
| 179 separators=(',', ':')), | |
| 180 '--factory-properties={"annotated_script":"nacl_sdk_buildbot_run.py"'+\ | |
| 181 ',"blink_config":"chromium","gclient_env":'+\ | |
| 182 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ | |
| 183 '"GYP_DEFINES":"fastbuild=1 component=static_library",'+\ | |
| 184 '"GYP_GENERATORS":"ninja","LANDMINES_VERBOSE":"1"},'+\ | |
| 185 '"no_gclient_branch":true,"nuke_and_pave":false}' | |
| 186 ], | |
| 187 allow_subannotations=True) | 161 allow_subannotations=True) |
| 188 | 162 |
| 189 | 163 |
| 190 def windows_sdk_multi_steps(api): | 164 def windows_sdk_multi_steps(api): |
| 191 build_properties = api.properties.legacy() | 165 build_properties = api.properties.legacy() |
| 192 # taskkill step | 166 # taskkill step |
| 193 api.python("taskkill", api.path["build"].join("scripts", "slave", | 167 api.python("taskkill", api.path["build"].join("scripts", "slave", |
| 194 "kill_processes.py")) | 168 "kill_processes.py")) |
| 195 # bot_update step | 169 # bot_update step |
| 196 src_cfg = api.gclient.make_config() | 170 src_cfg = api.gclient.make_config() |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 'src/v8': 'got_v8_revision'}) | 203 'src/v8': 'got_v8_revision'}) |
| 230 api.gclient.c = src_cfg | 204 api.gclient.c = src_cfg |
| 231 result = api.bot_update.ensure_checkout() | 205 result = api.bot_update.ensure_checkout() |
| 232 build_properties.update(result.json.output.get("properties", {})) | 206 build_properties.update(result.json.output.get("properties", {})) |
| 233 | 207 |
| 234 api.chromium.ensure_goma() | 208 api.chromium.ensure_goma() |
| 235 | 209 |
| 236 # clobber before runhooks | 210 # clobber before runhooks |
| 237 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) | 211 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) |
| 238 | 212 |
| 239 # gclient runhooks wrapper step | 213 # gclient runhooks step |
| 240 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 214 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
| 241 'LANDMINES_VERBOSE': '1', | 215 'LANDMINES_VERBOSE': '1', |
| 242 'DEPOT_TOOLS_UPDATE': '0', | 216 'DEPOT_TOOLS_UPDATE': '0', |
| 243 'GYP_DEFINES': 'fastbuild=1 component=static_library'} | 217 'GYP_DEFINES': 'fastbuild=1 component=static_library'} |
| 244 api.python("gclient runhooks wrapper", | 218 api.chromium.runhooks(env=env) |
| 245 api.path["build"].join("scripts", "slave", | |
| 246 "runhooks_wrapper.py"), | |
| 247 env=env) | |
| 248 | 219 |
| 249 # generate_build_files step | 220 # generate_build_files step |
| 250 api.chromium.run_mb(api.properties.get('mastername'), | 221 api.chromium.run_mb(api.properties.get('mastername'), |
| 251 api.properties.get('buildername')) | 222 api.properties.get('buildername')) |
| 252 | 223 |
| 253 # cleanup_temp step | 224 # cleanup_temp step |
| 254 api.chromium.cleanup_temp() | 225 api.chromium.cleanup_temp() |
| 255 | 226 |
| 256 # compile step | 227 # compile step |
| 257 api.chromium.compile(['chrome']) | 228 api.chromium.compile(['chrome']) |
| 258 | 229 |
| 259 # annotated_steps step | 230 # annotated_steps step |
| 260 api.python( | 231 api.python( |
| 261 "annotated_steps", | 232 "annotated_steps", |
| 262 api.path["build"].join("scripts", "slave", "chromium", | 233 api.path["build"].join("scripts", "slave", "chromium", |
| 263 "nacl_sdk_buildbot_run.py"), | 234 "nacl_sdk_buildbot_run.py"), |
| 264 args= | |
| 265 ['--build-properties=%s' % api.json.dumps(build_properties, | |
| 266 separators=(',', ':')), | |
| 267 '--factory-properties={"annotated_script":"nacl_sdk_buildbot_run.py"'+\ | |
| 268 ',"blink_config":"chromium","gclient_env":'+\ | |
| 269 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ | |
| 270 '"GYP_DEFINES":"fastbuild=1 component=static_library",'+\ | |
| 271 '"LANDMINES_VERBOSE":"1"},"no_gclient_branch":true,'+\ | |
| 272 '"nuke_and_pave":false}' | |
| 273 ], | |
| 274 allow_subannotations=True) | 235 allow_subannotations=True) |
| 275 | 236 |
| 276 | 237 |
| 277 def linux_sdk_multirel_steps(api): | 238 def linux_sdk_multirel_steps(api): |
| 278 build_properties = api.properties.legacy() | 239 build_properties = api.properties.legacy() |
| 279 # update scripts step; implicitly run by recipe engine. | 240 # update scripts step; implicitly run by recipe engine. |
| 280 # bot_update step | 241 # bot_update step |
| 281 src_cfg = api.gclient.make_config() | 242 src_cfg = api.gclient.make_config() |
| 282 soln = src_cfg.solutions.add() | 243 soln = src_cfg.solutions.add() |
| 283 soln.name = "chrome-official" | 244 soln.name = "chrome-official" |
| 284 soln.url = "svn://svn.chromium.org/chrome-internal/trunk/tools/buildspec/"+\ | 245 soln.url = "svn://svn.chromium.org/chrome-internal/trunk/tools/buildspec/"+\ |
| 285 "build/chrome-official" | 246 "build/chrome-official" |
| 286 soln.custom_deps = {'src-pdf': None, 'src/pdf': None} | 247 soln.custom_deps = {'src-pdf': None, 'src/pdf': None} |
| 287 src_cfg.got_revision_mapping.update( | 248 src_cfg.got_revision_mapping.update( |
| 288 {'src': 'got_revision', | 249 {'src': 'got_revision', |
| 289 'src/third_party/WebKit': 'got_webkit_revision', | 250 'src/third_party/WebKit': 'got_webkit_revision', |
| 290 'src/tools/swarming_client': 'got_swarming_client_revision', | 251 'src/tools/swarming_client': 'got_swarming_client_revision', |
| 291 'src/v8': 'got_v8_revision'}) | 252 'src/v8': 'got_v8_revision'}) |
| 292 api.gclient.c = src_cfg | 253 api.gclient.c = src_cfg |
| 293 result = api.bot_update.ensure_checkout() | 254 result = api.bot_update.ensure_checkout() |
| 294 build_properties.update(result.json.output.get("properties", {})) | 255 build_properties.update(result.json.output.get("properties", {})) |
| 295 | 256 |
| 296 api.chromium.ensure_goma() | 257 api.chromium.ensure_goma() |
| 297 | 258 |
| 298 # clobber before runhooks | 259 # clobber before runhooks |
| 299 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) | 260 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) |
| 300 | 261 |
| 301 # gclient runhooks wrapper step | 262 # gclient runhooks step |
| 302 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 263 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
| 303 'LANDMINES_VERBOSE': '1', | 264 'LANDMINES_VERBOSE': '1', |
| 304 'DEPOT_TOOLS_UPDATE': '0', | 265 'DEPOT_TOOLS_UPDATE': '0', |
| 305 'GYP_DEFINES': 'fastbuild=1 component=static_library'} | 266 'GYP_DEFINES': 'fastbuild=1 component=static_library'} |
| 306 api.python("gclient runhooks wrapper", | 267 api.chromium.runhooks(env=env) |
| 307 api.path["build"].join("scripts", "slave", | |
| 308 "runhooks_wrapper.py"), | |
| 309 env=env) | |
| 310 | 268 |
| 311 # generate_build_files step | 269 # generate_build_files step |
| 312 api.chromium.run_mb(api.properties.get('mastername'), | 270 api.chromium.run_mb(api.properties.get('mastername'), |
| 313 api.properties.get('buildername')) | 271 api.properties.get('buildername')) |
| 314 | 272 |
| 315 # cleanup_temp step | 273 # cleanup_temp step |
| 316 api.chromium.cleanup_temp() | 274 api.chromium.cleanup_temp() |
| 317 | 275 |
| 318 # compile step | 276 # compile step |
| 319 api.chromium.compile(['chrome']) | 277 api.chromium.compile(['chrome']) |
| 320 | 278 |
| 321 # annotated_steps step | 279 # annotated_steps step |
| 322 api.python( | 280 api.python( |
| 323 "annotated_steps", | 281 "annotated_steps", |
| 324 api.path["build"].join("scripts", "slave", "chromium", | 282 api.path["build"].join("scripts", "slave", "chromium", |
| 325 "nacl_sdk_buildbot_run.py"), | 283 "nacl_sdk_buildbot_run.py"), |
| 326 args= | |
| 327 ['--build-properties=%s' % api.json.dumps(build_properties, | |
| 328 separators=(',', ':')), | |
| 329 '--factory-properties={"annotated_script":"nacl_sdk_buildbot_run.py"'+\ | |
| 330 ',"blink_config":"chromium","gclient_env":'+\ | |
| 331 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ | |
| 332 '"GYP_DEFINES":"fastbuild=1 component=static_library",'+\ | |
| 333 '"LANDMINES_VERBOSE":"1"},"no_gclient_branch":true,'+\ | |
| 334 '"nuke_and_pave":true}' | |
| 335 ], | |
| 336 allow_subannotations=True) | 284 allow_subannotations=True) |
| 337 | 285 |
| 338 | 286 |
| 339 def windows_sdk_multirel_steps(api): | 287 def windows_sdk_multirel_steps(api): |
| 340 build_properties = api.properties.legacy() | 288 build_properties = api.properties.legacy() |
| 341 # taskkill step | 289 # taskkill step |
| 342 api.python("taskkill", api.path["build"].join("scripts", "slave", | 290 api.python("taskkill", api.path["build"].join("scripts", "slave", |
| 343 "kill_processes.py")) | 291 "kill_processes.py")) |
| 344 # bot_update step | 292 # bot_update step |
| 345 src_cfg = api.gclient.make_config() | 293 src_cfg = api.gclient.make_config() |
| 346 soln = src_cfg.solutions.add() | 294 soln = src_cfg.solutions.add() |
| 347 soln.name = "chrome-official" | 295 soln.name = "chrome-official" |
| 348 soln.url = "svn://svn.chromium.org/chrome-internal/trunk/tools/buildspec/"+\ | 296 soln.url = "svn://svn.chromium.org/chrome-internal/trunk/tools/buildspec/"+\ |
| 349 "build/chrome-official" | 297 "build/chrome-official" |
| 350 soln.custom_deps = {'src-pdf': None, 'src/pdf': None} | 298 soln.custom_deps = {'src-pdf': None, 'src/pdf': None} |
| 351 src_cfg.got_revision_mapping.update( | 299 src_cfg.got_revision_mapping.update( |
| 352 {'src': 'got_revision', | 300 {'src': 'got_revision', |
| 353 'src/third_party/WebKit': 'got_webkit_revision', | 301 'src/third_party/WebKit': 'got_webkit_revision', |
| 354 'src/tools/swarming_client': 'got_swarming_client_revision', | 302 'src/tools/swarming_client': 'got_swarming_client_revision', |
| 355 'src/v8': 'got_v8_revision'}) | 303 'src/v8': 'got_v8_revision'}) |
| 356 api.gclient.c = src_cfg | 304 api.gclient.c = src_cfg |
| 357 result = api.bot_update.ensure_checkout() | 305 result = api.bot_update.ensure_checkout() |
| 358 build_properties.update(result.json.output.get("properties", {})) | 306 build_properties.update(result.json.output.get("properties", {})) |
| 359 | 307 |
| 360 api.chromium.ensure_goma() | 308 api.chromium.ensure_goma() |
| 361 | 309 |
| 362 # clobber before runhooks | 310 # clobber before runhooks |
| 363 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) | 311 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) |
| 364 | 312 |
| 365 # gclient runhooks wrapper step | 313 # gclient runhooks step |
| 366 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 314 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
| 367 'LANDMINES_VERBOSE': '1', | 315 'LANDMINES_VERBOSE': '1', |
| 368 'DEPOT_TOOLS_UPDATE': '0', | 316 'DEPOT_TOOLS_UPDATE': '0', |
| 369 'GYP_DEFINES': 'fastbuild=1 component=static_library'} | 317 'GYP_DEFINES': 'fastbuild=1 component=static_library'} |
| 370 api.python("gclient runhooks wrapper", | 318 api.chromium.runhooks(env=env) |
| 371 api.path["build"].join("scripts", "slave", | |
| 372 "runhooks_wrapper.py"), | |
| 373 env=env) | |
| 374 | 319 |
| 375 # generate_build_files step | 320 # generate_build_files step |
| 376 api.chromium.run_mb(api.properties.get('mastername'), | 321 api.chromium.run_mb(api.properties.get('mastername'), |
| 377 api.properties.get('buildername')) | 322 api.properties.get('buildername')) |
| 378 | 323 |
| 379 # cleanup_temp step | 324 # cleanup_temp step |
| 380 api.chromium.cleanup_temp() | 325 api.chromium.cleanup_temp() |
| 381 | 326 |
| 382 # compile step | 327 # compile step |
| 383 api.chromium.compile(['chrome']) | 328 api.chromium.compile(['chrome']) |
| 384 | 329 |
| 385 # annotated_steps step | 330 # annotated_steps step |
| 386 api.python( | 331 api.python( |
| 387 "annotated_steps", | 332 "annotated_steps", |
| 388 api.path["build"].join("scripts", "slave", "chromium", | 333 api.path["build"].join("scripts", "slave", "chromium", |
| 389 "nacl_sdk_buildbot_run.py"), | 334 "nacl_sdk_buildbot_run.py"), |
| 390 args= | |
| 391 ['--build-properties=%s' % api.json.dumps(build_properties, | |
| 392 separators=(',', ':')), | |
| 393 '--factory-properties={"annotated_script":"nacl_sdk_buildbot_run.py"'+\ | |
| 394 ',"blink_config":"chromium","gclient_env":'+\ | |
| 395 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ | |
| 396 '"GYP_DEFINES":"fastbuild=1 component=static_library",'+\ | |
| 397 '"LANDMINES_VERBOSE":"1"},"no_gclient_branch":true,'+\ | |
| 398 '"nuke_and_pave":true}' | |
| 399 ], | |
| 400 allow_subannotations=True) | 335 allow_subannotations=True) |
| 401 | 336 |
| 402 | 337 |
| 403 def mac_sdk_multirel_steps(api): | 338 def mac_sdk_multirel_steps(api): |
| 404 build_properties = api.properties.legacy() | 339 build_properties = api.properties.legacy() |
| 405 # update scripts step; implicitly run by recipe engine. | 340 # update scripts step; implicitly run by recipe engine. |
| 406 # bot_update step | 341 # bot_update step |
| 407 src_cfg = api.gclient.make_config() | 342 src_cfg = api.gclient.make_config() |
| 408 soln = src_cfg.solutions.add() | 343 soln = src_cfg.solutions.add() |
| 409 soln.name = "chrome-official" | 344 soln.name = "chrome-official" |
| 410 soln.url = "svn://svn.chromium.org/chrome-internal/trunk/tools/buildspec/"+\ | 345 soln.url = "svn://svn.chromium.org/chrome-internal/trunk/tools/buildspec/"+\ |
| 411 "build/chrome-official" | 346 "build/chrome-official" |
| 412 soln.custom_deps = {'src-pdf': None, 'src/pdf': None} | 347 soln.custom_deps = {'src-pdf': None, 'src/pdf': None} |
| 413 src_cfg.got_revision_mapping.update( | 348 src_cfg.got_revision_mapping.update( |
| 414 {'src': 'got_revision', | 349 {'src': 'got_revision', |
| 415 'src/third_party/WebKit': 'got_webkit_revision', | 350 'src/third_party/WebKit': 'got_webkit_revision', |
| 416 'src/tools/swarming_client': 'got_swarming_client_revision', | 351 'src/tools/swarming_client': 'got_swarming_client_revision', |
| 417 'src/v8': 'got_v8_revision'}) | 352 'src/v8': 'got_v8_revision'}) |
| 418 api.gclient.c = src_cfg | 353 api.gclient.c = src_cfg |
| 419 result = api.bot_update.ensure_checkout() | 354 result = api.bot_update.ensure_checkout() |
| 420 build_properties.update(result.json.output.get("properties", {})) | 355 build_properties.update(result.json.output.get("properties", {})) |
| 421 | 356 |
| 422 api.chromium.ensure_goma() | 357 api.chromium.ensure_goma() |
| 423 | 358 |
| 424 # clobber before runhooks | 359 # clobber before runhooks |
| 425 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) | 360 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release')) |
| 426 | 361 |
| 427 # gclient runhooks wrapper step | 362 # gclient runhooks step |
| 428 env = {'LANDMINES_VERBOSE': '1', | 363 env = {'LANDMINES_VERBOSE': '1', |
| 429 'GYP_GENERATORS': 'ninja', | 364 'GYP_GENERATORS': 'ninja', |
| 430 'DEPOT_TOOLS_UPDATE': '0', | 365 'DEPOT_TOOLS_UPDATE': '0', |
| 431 'GYP_DEFINES': 'fastbuild=1 component=static_library', | 366 'GYP_DEFINES': 'fastbuild=1 component=static_library', |
| 432 'CHROMIUM_GYP_SYNTAX_CHECK': '1'} | 367 'CHROMIUM_GYP_SYNTAX_CHECK': '1'} |
| 433 api.python("gclient runhooks wrapper", | 368 api.chromium.runhooks(env=env) |
| 434 api.path["build"].join("scripts", "slave", | |
| 435 "runhooks_wrapper.py"), | |
| 436 env=env) | |
| 437 | 369 |
| 438 # generate_build_files step | 370 # generate_build_files step |
| 439 api.chromium.run_mb(api.properties.get('mastername'), | 371 api.chromium.run_mb(api.properties.get('mastername'), |
| 440 api.properties.get('buildername')) | 372 api.properties.get('buildername')) |
| 441 | 373 |
| 442 # cleanup_temp step | 374 # cleanup_temp step |
| 443 api.chromium.cleanup_temp() | 375 api.chromium.cleanup_temp() |
| 444 | 376 |
| 445 # compile step | 377 # compile step |
| 446 api.chromium.compile(['chrome']) | 378 api.chromium.compile(['chrome']) |
| 447 | 379 |
| 448 # annotated_steps step | 380 # annotated_steps step |
| 449 api.python( | 381 api.python( |
| 450 "annotated_steps", | 382 "annotated_steps", |
| 451 api.path["build"].join("scripts", "slave", "chromium", | 383 api.path["build"].join("scripts", "slave", "chromium", |
| 452 "nacl_sdk_buildbot_run.py"), | 384 "nacl_sdk_buildbot_run.py"), |
| 453 args= | |
| 454 ['--build-properties=%s' % api.json.dumps(build_properties, | |
| 455 separators=(',', ':')), | |
| 456 '--factory-properties={"annotated_script":"nacl_sdk_buildbot_run.py"'+\ | |
| 457 ',"blink_config":"chromium","gclient_env":'+\ | |
| 458 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ | |
| 459 '"GYP_DEFINES":"fastbuild=1 component=static_library",'+\ | |
| 460 '"GYP_GENERATORS":"ninja","LANDMINES_VERBOSE":"1"},'+\ | |
| 461 '"no_gclient_branch":true,"nuke_and_pave":true}' | |
| 462 ], | |
| 463 allow_subannotations=True) | 385 allow_subannotations=True) |
| 464 | 386 |
| 465 | 387 |
| 466 dispatch_directory = { | 388 dispatch_directory = { |
| 467 'linux-sdk-multi': linux_sdk_multi_steps, | 389 'linux-sdk-multi': linux_sdk_multi_steps, |
| 468 'mac-sdk-multi': mac_sdk_multi_steps, | 390 'mac-sdk-multi': mac_sdk_multi_steps, |
| 469 'windows-sdk-multi': windows_sdk_multi_steps, | 391 'windows-sdk-multi': windows_sdk_multi_steps, |
| 470 'linux-sdk-multirel': linux_sdk_multirel_steps, | 392 'linux-sdk-multirel': linux_sdk_multirel_steps, |
| 471 'linux-sdk-asan-multi': linux_sdk_multi_steps, | 393 'linux-sdk-asan-multi': linux_sdk_multi_steps, |
| 472 'windows-sdk-multirel': windows_sdk_multirel_steps, | 394 'windows-sdk-multirel': windows_sdk_multirel_steps, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 yield (api.test('mac_sdk_multirel') + api.properties( | 444 yield (api.test('mac_sdk_multirel') + api.properties( |
| 523 mastername='client.nacl.sdk') + api.properties( | 445 mastername='client.nacl.sdk') + api.properties( |
| 524 buildername='mac-sdk-multirel') + | 446 buildername='mac-sdk-multirel') + |
| 525 api.properties(revision='123456789abcdef') + api.properties( | 447 api.properties(revision='123456789abcdef') + api.properties( |
| 526 got_revision='123456789abcdef') + api.properties( | 448 got_revision='123456789abcdef') + api.properties( |
| 527 buildnumber='42') + api.properties(slavename='TestSlave')) | 449 buildnumber='42') + api.properties(slavename='TestSlave')) |
| 528 yield (api.test('builder_not_in_dispatch_directory') + api.properties( | 450 yield (api.test('builder_not_in_dispatch_directory') + api.properties( |
| 529 mastername='client.nacl.sdk') + api.properties( | 451 mastername='client.nacl.sdk') + api.properties( |
| 530 buildername='nonexistent_builder') + api.properties( | 452 buildername='nonexistent_builder') + api.properties( |
| 531 slavename='TestSlave')) | 453 slavename='TestSlave')) |
| OLD | NEW |