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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/bots/bot.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/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
2
3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file.
6
7 """
8 Buildbot steps for src tarball generation and debian package generation
9
10 Package up the src of the dart repo and create a debian package.
11 Archive bot to google cloud storage.
12 """
13
14 import re
15 import sys
16
17 import bot
18
19 SRC_BUILDER = r'src-tarball-linux'
20
21 def SrcConfig(name, is_buildbot):
22 """Returns info for the current buildbot based on the name of the builder.
23
24 Currently, since we only run this on linux, this is just:
25 - mode: always "release"
26 - system: always "linux"
27 """
28 src_pattern = re.match(SRC_BUILDER, name)
29 if not src_pattern:
30 return None
31
32 return bot.BuildInfo('none', 'none', 'release', 'linux')
33
34 def SrcSteps(build_info):
35 with bot.BuildStep('Create src tarball'):
36 args = [sys.executable, './tools/create_tarball.py']
37 print 'Building src tarball'
38 bot.RunProcess(args)
39
40 if __name__ == '__main__':
41 # We pass in None for build_step to avoid building the sdk.
42 bot.RunBot(SrcConfig, SrcSteps, build_step=None)
OLDNEW
« 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