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

Side by Side Diff: scripts/slave/recipes/chromium_gn.py

Issue 211473006: Add GN (the build tool) to the chromium.linux buildbots and try jobs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: merge to r260023 Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 DEPS = [
6 'chromium',
7 'gclient',
8 'platform',
9 'properties',
10 ]
11
12
13 def GenSteps(api):
14 api.gclient.set_config('chromium')
15 yield api.gclient.checkout(revert=True)
16
Paweł Hajdan Jr. 2014/03/28 09:45:04 nit: Remove redundant empty line.
Dirk Pranke 2014/03/28 15:59:43 will do.
17
18 # TODO(dpranke): The build_config should probably be a property passed
19 # in from slaves.cfg, but that doesn't exist today, so we need a lookup
20 # mechanism to map bot name to build_config.
21 build_config = {
22 'Linux GN (dbg)': 'Debug',
23 }[api.properties.get('buildername')]
24
25 api.chromium.set_config('chromium', BUILD_CONFIG=build_config)
26 yield api.chromium.runhooks(run_gyp=False)
27
28 yield api.chromium.run_gn('//out/' + build_config)
29
30 yield api.chromium.compile_with_ninja('compile', api.chromium.output_dir)
31
32 # TODO(dpranke): crbug.com/353854. Run gn_unittests and other tests
33 # when they are also being run as part of the try jobs.
34
35
36 def GenTests(api):
37 yield (
38 api.test('unittest_basic') +
39 api.properties.generic(buildername='Linux GN (dbg)') +
40 api.platform.name('linux')
41 )
42
43 # TODO(dpranke): This test should actually produce the same result
44 # as the previous test, but it specifically matches what is run
45 # on the "Linux GN (dbg)" bot. We should have one 'simulation' test
46 # for each bot config. Ideally this should live somewhere else
47 # closer to the master tests.
48 yield (
49 api.test('full_chromium_linux_Linux_GN__dbg_') +
50 api.properties.generic(buildername='Linux GN (dbg)') +
51 api.platform.name('linux')
52 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698