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

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

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: rebase Created 7 years, 3 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
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 DEPS = [ 6 DEPS = [
7 'gclient', 7 'gclient',
8 'git', 8 'git',
9 'path', 9 'path',
10 'platform', 10 'platform',
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 cwd=api.path.checkout(), env=node_env) 90 cwd=api.path.checkout(), env=node_env)
91 91
92 yield api.step('test', test_prefix + ['grunt' + cmd_suffix, 92 yield api.step('test', test_prefix + ['grunt' + cmd_suffix,
93 'test-buildbot'], cwd=api.path.checkout(), 93 'test-buildbot'], cwd=api.path.checkout(),
94 env=node_env, allow_subannotations=True) 94 env=node_env, allow_subannotations=True)
95 95
96 96
97 def GenTests(api): 97 def GenTests(api):
98 # Test paths and commands on each platform. 98 # Test paths and commands on each platform.
99 for plat in ('mac', 'linux', 'win'): 99 for plat in ('mac', 'linux', 'win'):
100 yield 'polymer-%s' % plat, { 100 yield (
101 'properties': api.properties_scheduled( 101 api.Test('polymer-%s' % plat) +
102 repository='https://github.com/Polymer/polymer', 102 api.properties.scheduled(
103 buildername='polymer %s' % plat), 103 repository='https://github.com/Polymer/polymer',
104 'mock': { 104 buildername='polymer %s' % plat,
105 'platform': { 105 ) +
106 'name': plat 106 api.platform.name(plat)
107 } 107 )
108 }, 108
109 }
110 # Make sure the steps are right for deps-triggered jobs. 109 # Make sure the steps are right for deps-triggered jobs.
111 yield 'polymer-from-platform', { 110 yield (
112 'properties': api.properties_scheduled( 111 api.Test('polymer-from-platform') +
113 repository='https://github.com/Polymer/platform', 112 api.properties.scheduled(
114 buildername='polymer linux', 113 repository='https://github.com/Polymer/platform',
115 scheduler='polymer-platform') 114 buildername='polymer linux',
116 } 115 scheduler='polymer-platform'
116 )
117 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698