| OLD | NEW |
| 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. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 bot.RunProcess(args) | 92 bot.RunProcess(args) |
| 93 print 'Building Debian packages' | 93 print 'Building Debian packages' |
| 94 args = [sys.executable, './tools/create_debian_packages.py', | 94 args = [sys.executable, './tools/create_debian_packages.py', |
| 95 '--tar_filename', tarfile, | 95 '--tar_filename', tarfile, |
| 96 '--out_dir', builddir] | 96 '--out_dir', builddir] |
| 97 bot.RunProcess(args) | 97 bot.RunProcess(args) |
| 98 | 98 |
| 99 with bot.BuildStep('Upload artifacts'): | 99 with bot.BuildStep('Upload artifacts'): |
| 100 bot_name, _ = bot.GetBotName() | 100 bot_name, _ = bot.GetBotName() |
| 101 channel = bot_utils.GetChannelFromName(bot_name) | 101 channel = bot_utils.GetChannelFromName(bot_name) |
| 102 # if channel != bot_utils.Channel.BLEEDING_EDGE: | 102 if channel != bot_utils.Channel.BLEEDING_EDGE: |
| 103 ArchiveArtifacts(tarfile, builddir, channel, build_info.builder_tag) | 103 ArchiveArtifacts(tarfile, builddir, channel, build_info.builder_tag) |
| 104 # else: | 104 else: |
| 105 # print 'Not uploading artifacts on bleeding edge' | 105 print 'Not uploading artifacts on bleeding edge' |
| 106 | 106 |
| 107 if __name__ == '__main__': | 107 if __name__ == '__main__': |
| 108 # We pass in None for build_step to avoid building the sdk. | 108 # We pass in None for build_step to avoid building the sdk. |
| 109 bot.RunBot(SrcConfig, SrcSteps, build_step=None) | 109 bot.RunBot(SrcConfig, SrcSteps, build_step=None) |
| OLD | NEW |