| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 various Syzygy continuous builders. | 5 """Buildbot recipe definition for the various Syzygy continuous builders. |
| 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/continuous | 9 /build/scripts/tools/run_recipe.py syzygy/continuous |
| 10 revision=0e9f25b1098271be2b096fd1c095d6d907cf86f7 | 10 revision=0e9f25b1098271be2b096fd1c095d6d907cf86f7 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 def RunSteps(api, buildername, blamelist, revision): | 55 def RunSteps(api, buildername, blamelist, revision): |
| 56 """Generates the sequence of steps that will be run by the slave.""" | 56 """Generates the sequence of steps that will be run by the slave.""" |
| 57 assert buildername in BUILDERS | 57 assert buildername in BUILDERS |
| 58 | 58 |
| 59 # Configure the build environment. | 59 # Configure the build environment. |
| 60 s = api.syzygy | 60 s = api.syzygy |
| 61 config, kwargs = BUILDERS[buildername] | 61 config, kwargs = BUILDERS[buildername] |
| 62 s.set_config(config, **kwargs) | 62 s.set_config(config, **kwargs) |
| 63 api.chromium.set_config(config, **kwargs) | 63 api.chromium.set_config(config, **kwargs) |
| 64 api.gclient.set_config(config, GIT_MODE=True, **kwargs) | 64 api.gclient.set_config(config, **kwargs) |
| 65 | 65 |
| 66 # Clean up any running processes on the slave. | 66 # Clean up any running processes on the slave. |
| 67 s.taskkill() | 67 s.taskkill() |
| 68 | 68 |
| 69 # Checkout and compile the project. | 69 # Checkout and compile the project. |
| 70 s.checkout() | 70 s.checkout() |
| 71 s.runhooks() | 71 s.runhooks() |
| 72 s.compile() | 72 s.compile() |
| 73 | 73 |
| 74 # Load and run the unittests. | 74 # Load and run the unittests. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 95 props = {'blamelist': blamelist, | 95 props = {'blamelist': blamelist, |
| 96 'buildername': 'Syzygy Smoke Test', | 96 'buildername': 'Syzygy Smoke Test', |
| 97 'revision': revision} | 97 'revision': revision} |
| 98 api.trigger(props) | 98 api.trigger(props) |
| 99 | 99 |
| 100 | 100 |
| 101 def GenTests(api): | 101 def GenTests(api): |
| 102 """Generates an end-to-end successful test for each builder.""" | 102 """Generates an end-to-end successful test for each builder.""" |
| 103 for buildername in BUILDERS.iterkeys(): | 103 for buildername in BUILDERS.iterkeys(): |
| 104 yield api.syzygy.generate_test(api, buildername) | 104 yield api.syzygy.generate_test(api, buildername) |
| OLD | NEW |