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

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

Issue 206293002: Rename src-tarball to linux-distribution-support (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « client/tools/buildbot_annotated_steps.py ('k') | tools/bots/src-tarball.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 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 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. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 """ 7 """
8 Buildbot steps for src tarball generation and debian package generation 8 Buildbot steps for src tarball generation and debian package generation
9 9
10 Package up the src of the dart repo and create a debian package. 10 Package up the src of the dart repo and create a debian package.
11 Archive tarball and debian package to google cloud storage. 11 Archive tarball and debian package to google cloud storage.
12 """ 12 """
13 13
14 import os 14 import os
15 import re 15 import re
16 import sys 16 import sys
17 17
18 import bot 18 import bot
19 import bot_utils 19 import bot_utils
20 20
21 utils = bot_utils.GetUtils() 21 utils = bot_utils.GetUtils()
22 22
23 HOST_OS = utils.GuessOS() 23 HOST_OS = utils.GuessOS()
24 SRC_BUILDER = r'src-tarball-linux-(debian_wheezy|ubuntu_precise)' 24 SRC_BUILDER = r'linux-distribution-support-(debian_wheezy|ubuntu_precise)'
25 25
26 def SrcConfig(name, is_buildbot): 26 def SrcConfig(name, is_buildbot):
27 """Returns info for the current buildbot based on the name of the builder. 27 """Returns info for the current buildbot based on the name of the builder.
28 28
29 Currently, since we only run this on linux, this is just: 29 Currently, since we only run this on linux, this is just:
30 - mode: always "release" 30 - mode: always "release"
31 - system: always "linux" 31 - system: always "linux"
32 """ 32 """
33 src_pattern = re.match(SRC_BUILDER, name) 33 src_pattern = re.match(SRC_BUILDER, name)
34 if not src_pattern: 34 if not src_pattern:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 bot_name, _ = bot.GetBotName() 83 bot_name, _ = bot.GetBotName()
84 channel = bot_utils.GetChannelFromName(bot_name) 84 channel = bot_utils.GetChannelFromName(bot_name)
85 if channel != bot_utils.Channel.BLEEDING_EDGE: 85 if channel != bot_utils.Channel.BLEEDING_EDGE:
86 ArchiveArtifacts(tarfile, builddir, channel, build_info.builder_tag) 86 ArchiveArtifacts(tarfile, builddir, channel, build_info.builder_tag)
87 else: 87 else:
88 print 'Not uploading artifacts on bleeding edge' 88 print 'Not uploading artifacts on bleeding edge'
89 89
90 if __name__ == '__main__': 90 if __name__ == '__main__':
91 # We pass in None for build_step to avoid building the sdk. 91 # We pass in None for build_step to avoid building the sdk.
92 bot.RunBot(SrcConfig, SrcSteps, build_step=None) 92 bot.RunBot(SrcConfig, SrcSteps, build_step=None)
OLDNEW
« no previous file with comments | « client/tools/buildbot_annotated_steps.py ('k') | tools/bots/src-tarball.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698