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

Unified Diff: tools/bots/src-tarball.py

Issue 157223004: Add annotated steps for src tarball creation bot (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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/bot.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/src-tarball.py
===================================================================
--- tools/bots/src-tarball.py (revision 0)
+++ tools/bots/src-tarball.py (revision 0)
@@ -0,0 +1,42 @@
+#!/usr/bin/python
kustermann 2014/02/11 10:25:28 As mentioned on another CL, we should never use da
ricow1 2014/02/11 10:36:45 Sure, lets just do that
+
+# Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+"""
+Buildbot steps for src tarball generation and debian package generation
+
+Package up the src of the dart repo and create a debian package.
+Archive bot to google cloud storage.
+"""
+
+import re
+import sys
+
+import bot
+
+SRC_BUILDER = r'src-tarball-linux'
+
+def SrcConfig(name, is_buildbot):
+ """Returns info for the current buildbot based on the name of the builder.
+
+ Currently, since we only run this on linux, this is just:
+ - mode: always "release"
+ - system: always "linux"
+ """
+ src_pattern = re.match(SRC_BUILDER, name)
+ if not src_pattern:
+ return None
+
+ return bot.BuildInfo('none', 'none', 'release', 'linux')
+
+def SrcSteps(build_info):
+ with bot.BuildStep('Create src tarball'):
+ args = [sys.executable, './tools/create_tarball.py']
+ print 'Building src tarball'
+ bot.RunProcess(args)
+
+if __name__ == '__main__':
+ # We pass in None for build_step to avoid building the sdk.
+ bot.RunBot(SrcConfig, SrcSteps, build_step=None)
Property changes on: tools/bots/src-tarball.py
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « tools/bots/bot.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698