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

Side by Side Diff: scripts/slave/recipes/blimp/integration.py

Issue 2416253003: Add the recipe_modules/blimp for integration bot (Closed)
Patch Set: add script steps in example.py Created 4 years, 2 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
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
mikecase (-- gone --) 2016/10/15 00:05:37 Did you mean to delete this file?
shenghuazhang 2016/10/17 23:22:07 Oh this shouldn't be here... This file shouldn't b
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from recipe_engine import recipe_api
6 from recipe_engine.recipe_api import Property
7 from recipe_engine.types import freeze
8
9 DEPS = [
10 'chromium',
11 'chromium_android',
12 'chromium_swarming',
13 'chromium_tests',
14 'depot_tools/bot_update',
15 'depot_tools/gclient',
16 'recipe_engine/json',
17 'recipe_engine/path',
18 'recipe_engine/platform',
19 'recipe_engine/properties',
20 'recipe_engine/python',
21 'recipe_engine/step',
22 'swarming',
23 'test_results',
24 'test_utils',
25 ]
26
27 BUILDERS = freeze({
28 'chromium.fyi': {
29 'Blimp Client Engine Integration': {
30 'chromium_config': 'android',
31 'config': 'main_builder',
32 'gclient_apply_config': 'android',
33 'gclient_config': 'chromium',
34 'target': 'Debug',
35 },
36 },
37 })
38
39 REPO_URL = 'https://chromium.googlesource.com/chromium/src.git'
40
41 def RunSteps(api):
42 android_build = api.path['slave_build'].join('src', 'out-android', 'Debug')
43 linux_build = api.path['slave_build'].join('src', 'out-linux', 'Debug')
44 mastername = api.properties.get('mastername')
45 buildername = api.properties.get('buildername')
46 builder = BUILDERS[mastername][buildername]
47 api.chromium_android.configure_from_properties(
48 builder['config'],
49 REPO_NAME='src',
50 REPO_URL=REPO_URL,
51 INTERNAL=False,
52 BUILD_CONFIG=builder['target'])
53
54 api.chromium.set_config('chromium')
55 api.gclient.set_config(builder['gclient_config'])
56 api.gclient.apply_config(builder['gclient_apply_config'])
57 api.bot_update.ensure_checkout()
58 api.chromium.ensure_goma()
59 api.chromium_android.clean_local_files()
60 api.chromium.runhooks()
61
62 api.chromium.run_mb(mastername=mastername,
63 buildername=buildername,
64 build_dir=linux_build,
65 phase='engine')
66 api.chromium.compile(targets=['blimp'],
67 out_dir=linux_build)
68 api.chromium.run_mb(mastername=mastername,
69 buildername=buildername,
70 build_dir=android_build,
71 phase='client')
72 api.chromium.compile(targets=['blimp', 'chrome_public_apk'],
73 out_dir=android_build)
74
75
76 def GenTests(api):
77 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s)
78
79 yield (
80 api.test('%s_test_pass' % sanitize('Blimp Android Tester')) +
81 api.properties.generic(
82 buildername='Blimp Client Engine Integration',
83 mastername='chromium.fyi')
84 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698