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

Unified Diff: scripts/slave/recipes/gn_buildbot.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: initial patch for review 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/gn_buildbot.py
diff --git a/scripts/slave/recipes/gn_buildbot.py b/scripts/slave/recipes/gn_buildbot.py
new file mode 100644
index 0000000000000000000000000000000000000000..2fb19bb478a1be2551c20284197348af60f6d39b
--- /dev/null
+++ b/scripts/slave/recipes/gn_buildbot.py
@@ -0,0 +1,45 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+DEPS = [
+ 'chromium',
+ 'gclient',
+ 'platform',
+ 'properties',
+]
+
+
+def GenSteps(api):
+ api.gclient.set_config('chromium')
+ yield api.gclient.checkout(revert=True)
+
+ api.chromium.set_config('chromium')
+ yield api.chromium.runhooks(run_gyp=False)
+
+ yield api.chromium.run_gn(api.chromium.output_dir)
+
+ yield api.chromium.compile_with_ninja('compile', api.chromium.output_dir)
+
+ # TODO(dpranke): crbug.com/353854. We should pull the list of test_targets
+ # from src/testing/buildbot.
+ yield api.chromium.runtest('gn_unittests', annotate='gtest')
+
+
+def GenTests(api):
+ yield (
+ api.test('unittest_basic') +
+ api.properties.generic(build_config='Debug') +
+ api.platform.name('linux')
+ )
+
+ # TODO(dpranke): This test should actually produce the same result
+ # as the previous test, but it specifically matches what is run
+ # on the "Linux GN (dbg)" bot. We should have one 'simulation' test
+ # for each bot config. Ideally this should live somewhere else
+ # closer to the master tests.
+ yield (
+ api.test('full_chromium_linux_Linux_GN__dbg_') +
+ api.properties.generic(build_config='Debug') +
+ api.platform.name('linux')
+ )

Powered by Google App Engine
This is Rietveld 408576698