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

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

Issue 17635005: Make blink_trybot recipe work on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Fix presubmit + move polyfill (retry) Created 7 years, 5 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 DEPS = ['properties', 'gclient', 'git', 'rietveld', 'step', 'path'] 5 DEPS = [
6 'gclient',
7 'git',
8 'path',
9 'properties',
10 'rietveld',
11 'step',
12 ]
6 13
7 def GenSteps(api): 14 def GenSteps(api):
8 root = api.rietveld.calculate_issue_root() 15 root = api.rietveld.calculate_issue_root()
9 16
10 # FIXME: Remove the blink_bare repository type. 17 # FIXME: Remove the blink_bare repository type.
11 # TODO(iannucci): Pass the build repo info directly via properties 18 # TODO(iannucci): Pass the build repo info directly via properties
12 repo_name = api.properties['repo_name'] 19 repo_name = api.properties['repo_name']
13 if repo_name == 'blink_bare': 20 if repo_name == 'blink_bare':
14 root = '' 21 root = ''
15 22
16 api.gclient.set_config(repo_name) 23 api.gclient.set_config(repo_name)
17 yield api.gclient.checkout() 24 yield api.gclient.checkout()
18 25
19 spec = api.gclient.c 26 spec = api.gclient.c
20 if spec.solutions[0].url.endswith('.git'): 27 if spec.solutions[0].url.endswith('.git'):
21 seed_steps = ['git config user.email', 'git config user.name', 28 yield (
22 'git clean'] 29 api.git.command('config', 'user.email', 'commit-bot@chromium.org'),
23 yield api.git.command('config', 'user.email', 'commit-bot@chromium.org', 30 api.git.command('config', 'user.name', 'The Commit Bot'),
24 seed_steps=seed_steps) 31 api.git.command('clean', '-xfq')
25 yield api.git.command('config', 'user.name', 'The Commit Bot') 32 )
26 yield api.git.command('clean', '-xfq')
27 33
28 yield api.rietveld.apply_issue(root) 34 yield api.rietveld.apply_issue(root)
29 35
30 yield api.step('presubmit', [ 36 yield api.step('presubmit', [
31 api.path.depot_tools('presubmit_support.py'), 37 api.path.depot_tools('presubmit_support.py'),
32 '--root', api.path.checkout(root), 38 '--root', api.path.checkout(root),
33 '--commit', 39 '--commit',
34 '--verbose', '--verbose', 40 '--verbose', '--verbose',
35 '--issue', api.properties['issue'], 41 '--issue', api.properties['issue'],
36 '--patchset', api.properties['patchset'], 42 '--patchset', api.properties['patchset'],
(...skipping 11 matching lines...) Expand all
48 props = api.properties_tryserver( 54 props = api.properties_tryserver(
49 root='src/third_party/WebKit' 55 root='src/third_party/WebKit'
50 ) 56 )
51 else: 57 else:
52 props = api.properties_tryserver() 58 props = api.properties_tryserver()
53 59
54 props['repo_name'] = repo_name 60 props['repo_name'] = repo_name
55 yield repo_name, { 61 yield repo_name, {
56 'properties': props 62 'properties': props
57 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698