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

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

Issue 2390753005: Double Builds for Blimp Integration Test Infrastructure on FYI bot (Closed)
Patch Set: recipe config 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.
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 'depot_tools/bot_update',
11 'chromium',
12 'chromium_android',
13 'chromium_swarming',
14 'chromium_tests',
15 'recipe_engine/json',
16 'recipe_engine/path',
17 'recipe_engine/platform',
18 'recipe_engine/properties',
19 'recipe_engine/python',
20 'recipe_engine/step',
21 'swarming',
22 'test_results',
23 'test_utils',
24 ]
25
26 BUILDERS = freeze({
27 'chromium.fyi': {
28 'builders':{
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
40 REPO_URL = 'https://chromium.googlesource.com/chromium/src.git'
41
42 def RunSteps(api):
43 android_build = api.path['slave_build'].join('src', 'out-android', 'Debug')
44 linux_build = api.path['slave_build'].join('src', 'out-linux', 'Debug')
45 mastername = api.properties.get('mastername')
46 buildername = api.properties.get('buildername')
47 builder = BUILDERS[mastername][buildername]
48 api.chromium_android.configure_from_properties(
shenghuazhang 2016/10/12 22:42:04 For the chromium android recipe config here, I cop
49 builder['config'],
50 REPO_NAME='src',
51 REPO_URL=REPO_URL,
52 INTERNAL=False,
53 BUILD_CONFIG=builder['target'])
54
55 api.chromium.set_config('chromium')
56 api.gclient.set_config(builder['gclient_config'])
57 api.gclient.apply_config(builder['gclient_apply_config'])
58 api.bot_update.ensure_checkout()
59 api.chromium.ensure_goma()
60 api.chromium_android.clean_local_files()
61 api.chromium.runhooks()
62
63 api.chromium.run_mb(mastername=mastername,
64 buildername=buildername,
65 build_dir=linux_build,
66 phase='engine')
67 api.chromium.compile(targets=['blimp'],
68 out_dir=linux_build)
69 api.chromium.run_mb(mastername=mastername,
70 buildername=buildername,
71 build_dir=android_build,
72 phase='client')
73 api.chromium.compile(targets=['blimp', 'chrome_public_apk'],
74 out_dir=android_build)
75
76
77 def GenTests(api):
78 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s)
79
80 yield (
81 api.test('%s_test_pass' % sanitize('Blimp Android Tester')) +
82 api.properties.generic(
83 buildername='Blimp Client Engine Integration',
84 mastername='chromium.fyi')
85 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698