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

Side by Side Diff: scripts/slave/recipe_modules/luci_config/example.py

Issue 2064453002: add recipe continuous builders for each repo with recipes (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Fix presubmit Created 4 years, 6 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 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 from recipe_engine.recipe_api import Property 5 from recipe_engine.recipe_api import Property
6 6
7 DEPS = [ 7 DEPS = [
8 'luci_config', 8 'luci_config',
9 'recipe_engine/properties' 9 'recipe_engine/properties'
10 ] 10 ]
(...skipping 16 matching lines...) Expand all
27 api.luci_config.get_projects(['build']) + 27 api.luci_config.get_projects(['build']) +
28 api.luci_config.get_project_config('build', 'recipes.cfg', 'testcontent') 28 api.luci_config.get_project_config('build', 'recipes.cfg', 'testcontent')
29 ) 29 )
30 30
31 yield ( 31 yield (
32 api.test('auth_token') + 32 api.test('auth_token') +
33 api.properties(auth_token='ya2930948320948203480=') + 33 api.properties(auth_token='ya2930948320948203480=') +
34 api.luci_config.get_projects(['build']) + 34 api.luci_config.get_projects(['build']) +
35 api.luci_config.get_project_config('build', 'recipes.cfg', 'testcontent') 35 api.luci_config.get_project_config('build', 'recipes.cfg', 'testcontent')
36 ) 36 )
37
38 protobuf_lines = """
39 foo: 1
40 bar: "hi"
41 baz: {
42 the_thing: "hi"
43 }
44 """
45
46 yield (
47 api.test('protobuf') +
48 api.luci_config.get_projects(['build']) +
49 api.luci_config.get_project_config(
50 'build', 'recipes.cfg', '\n'.join(protobuf_lines))
51 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698