Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: scripts/slave/recipes/syzygy/kasko_official.py

Issue 2275603003: Make syzygy recipes explicitly set GIT_MODE (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 """Buildbot recipe definition for the official Kasko builder. 5 """Buildbot recipe definition for the official Kasko builder.
6 6
7 To be tested using a command-line like: 7 To be tested using a command-line like:
8 8
9 /build/scripts/tools/run_recipe.py syzygy/official_kasko 9 /build/scripts/tools/run_recipe.py syzygy/official_kasko
10 revision=0e9f25b1098271be2b096fd1c095d6d907cf86f7 10 revision=0e9f25b1098271be2b096fd1c095d6d907cf86f7
(...skipping 29 matching lines...) Expand all
40 40
41 def RunSteps(api, buildername): 41 def RunSteps(api, buildername):
42 """Generates the sequence of steps that will be run by the slave.""" 42 """Generates the sequence of steps that will be run by the slave."""
43 assert buildername in _BUILDERS 43 assert buildername in _BUILDERS
44 44
45 # Configure the build environment. 45 # Configure the build environment.
46 s = api.syzygy 46 s = api.syzygy
47 config, kwargs = _BUILDERS[buildername] 47 config, kwargs = _BUILDERS[buildername]
48 s.set_config(config, **kwargs) 48 s.set_config(config, **kwargs)
49 api.chromium.set_config(config, **kwargs) 49 api.chromium.set_config(config, **kwargs)
50 api.gclient.set_config(config, **kwargs) 50 api.gclient.set_config(config, GIT_MODE=True, **kwargs)
51 51
52 # Clean up any running processes on the slave. 52 # Clean up any running processes on the slave.
53 s.taskkill() 53 s.taskkill()
54 54
55 # Checkout and compile the project. 55 # Checkout and compile the project.
56 s.checkout() 56 s.checkout()
57 s.runhooks() 57 s.runhooks()
58 s.compile() 58 s.compile()
59 59
60 # Load and run the unittests. 60 # Load and run the unittests.
61 unittests = s.read_unittests_gypi() 61 unittests = s.read_unittests_gypi()
62 s.run_unittests(unittests) 62 s.run_unittests(unittests)
63 63
64 build_config = api.chromium.c.BUILD_CONFIG 64 build_config = api.chromium.c.BUILD_CONFIG
65 65
66 assert s.c.official_build 66 assert s.c.official_build
67 67
68 assert build_config == 'Release' 68 assert build_config == 'Release'
69 s.archive_binaries() 69 s.archive_binaries()
70 s.upload_kasko_symbols() 70 s.upload_kasko_symbols()
71 71
72 72
73 def GenTests(api): 73 def GenTests(api):
74 """Generates an end-to-end successful test for each builder.""" 74 """Generates an end-to-end successful test for each builder."""
75 for buildername in _BUILDERS.iterkeys(): 75 for buildername in _BUILDERS.iterkeys():
76 yield api.syzygy.generate_test(api, buildername) 76 yield api.syzygy.generate_test(api, buildername)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698