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

Side by Side Diff: tools/bots/pub.py

Issue 11236012: Add script for pub buildbots. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/bots/compiler.py ('k') | utils/compiler/buildbot.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/python
2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
ricow1 2012/10/25 06:49:30 Us the dart authors copyright note, I assume that
Bob Nystrom 2012/10/26 01:15:00 Yeah, I think so. Fixed here: https://codereview.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 """
8 Pub buildbot steps.
9
10 Runs tests for pub and the pub packages that are hosted in the main Dart repo.
11 """
12
13 import re
14 import sys
15
16 import bot
17
18 PUB_BUILDER = r'pub-(linux|mac|win)'
19
20 def PubConfig(name, is_buildbot):
21 """Returns info for the current buildbot based on the name of the builder.
22
23 Currently, this is just:
24 - mode: always "release"
25 - system: "linux", "mac", or "win"
26 """
27 pub_pattern = re.match(PUB_BUILDER, name)
28 if not pub_pattern:
29 return None
30
31 system = pub_pattern.group(1)
32 if system == 'win': system = 'windows'
33
34 return bot.BuildInfo('none', 'vm', 'release', system, checked=True)
35
36
37 def PubSteps(build_info):
38 # TODO(rnystrom): Eventually test other targets here like 'utils'?
39 bot.RunTest('pub', build_info, ['pub'])
40
41
42 if __name__ == '__main__':
43 bot.RunBot(PubConfig, PubSteps)
OLDNEW
« no previous file with comments | « tools/bots/compiler.py ('k') | utils/compiler/buildbot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698