OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/python |
| 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) |
OLD | NEW |