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

Unified Diff: scripts/master/factory/chromium_factory.py

Issue 8536050: Add chromium android bot to FYI waterfall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « scripts/master/factory/chromium_commands.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/master/factory/chromium_factory.py
===================================================================
--- scripts/master/factory/chromium_factory.py (revision 110985)
+++ scripts/master/factory/chromium_factory.py (working copy)
@@ -176,7 +176,7 @@
def __init__(self, build_dir, target_platform=None, pull_internal=True,
full_checkout=False, additional_svn_urls=None, name=None,
- custom_deps_list=None):
+ custom_deps_list=None, nohooks_on_update=False):
if full_checkout:
needed_components = None
else:
@@ -202,7 +202,8 @@
gclient_factory.GClientFactory.__init__(self, build_dir,
internal_custom_deps_list,
- target_platform=target_platform)
+ target_platform=target_platform,
+ nohooks_on_update=nohooks_on_update)
def _AddTests(self, factory_cmd_obj, tests, mode=None,
factory_properties=None):
@@ -530,6 +531,48 @@
factory_properties=factory_properties)
return factory
+ def ChromiumAnnotationFactory(self, annotation_script,
+ branch='master',
+ target='Release',
+ slave_type='AnnotatedBuilderTester',
+ clobber=False,
+ compile_timeout=6000,
+ build_url=None,
+ project=None,
+ factory_properties=None, options=None,
+ tests=None,
+ gclient_deps=None):
+ """Annotation-driven Chromium buildbot factory.
+
+ Line a ChromiumFactory, but non-sync steps (compile, run tests)
+ are specified in a script that uses @@@BUILD_STEP descriptive
+ text@@@ style annotations.
+
+ Note new slave type AnnotatedBuilderTester; we don't want a
+ compile step added.
+ TODO(jrg): is a new slave type the right direction?
+ """
+ # Setup factory.
+ factory_properties = factory_properties or {}
+ options = options or {}
+ factory = self.BuildFactory(target, clobber,
+ None, None, # tests_for_build, mode,
+ slave_type, options, compile_timeout, build_url,
+ project, factory_properties,
+ gclient_deps=gclient_deps)
+
+ # Get the factory command object to create new steps to the factory.
+ chromium_cmd_obj = chromium_commands.ChromiumCommands(factory,
+ target,
+ self._build_dir,
+ self._target_platform)
+
+ # Add the main build.
+ chromium_cmd_obj.AddAnnotationStep('build', annotation_script)
+
+ return factory
+
+
def ReliabilityTestsFactory(self, platform='win'):
"""Create a BuildFactory to run a reliability slave."""
factory = BuildFactory({})
« no previous file with comments | « scripts/master/factory/chromium_commands.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698