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

Unified 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, 2 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
« no previous file with comments | « tools/bots/compiler.py ('k') | utils/compiler/buildbot.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/pub.py
diff --git a/tools/bots/pub.py b/tools/bots/pub.py
new file mode 100644
index 0000000000000000000000000000000000000000..09139316b0f3bdce5d5f077f4be2f1a49492ce0d
--- /dev/null
+++ b/tools/bots/pub.py
@@ -0,0 +1,43 @@
+#!/usr/bin/python
+
+# 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.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+Pub buildbot steps.
+
+Runs tests for pub and the pub packages that are hosted in the main Dart repo.
+"""
+
+import re
+import sys
+
+import bot
+
+PUB_BUILDER = r'pub-(linux|mac|win)'
+
+def PubConfig(name, is_buildbot):
+ """Returns info for the current buildbot based on the name of the builder.
+
+ Currently, this is just:
+ - mode: always "release"
+ - system: "linux", "mac", or "win"
+ """
+ pub_pattern = re.match(PUB_BUILDER, name)
+ if not pub_pattern:
+ return None
+
+ system = pub_pattern.group(1)
+ if system == 'win': system = 'windows'
+
+ return bot.BuildInfo('none', 'vm', 'release', system, checked=True)
+
+
+def PubSteps(build_info):
+ # TODO(rnystrom): Eventually test other targets here like 'utils'?
+ bot.RunTest('pub', build_info, ['pub'])
+
+
+if __name__ == '__main__':
+ bot.RunBot(PubConfig, PubSteps)
« 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