| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, 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 Pub buildbot steps. | 8 Pub buildbot steps. |
| 9 | 9 |
| 10 Runs tests for pub and the pub packages that are hosted in the main Dart repo. | 10 Runs tests for pub and the pub packages that are hosted in the main Dart repo. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 41 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 42 'packages'] | 42 'packages'] |
| 43 print 'Building package-root: %s' % (' '.join(args)) | 43 print 'Building package-root: %s' % (' '.join(args)) |
| 44 bot.RunProcess(args) | 44 bot.RunProcess(args) |
| 45 | 45 |
| 46 common_args = ['--write-test-outcome-log'] | 46 common_args = ['--write-test-outcome-log'] |
| 47 if build_info.builder_tag: | 47 if build_info.builder_tag: |
| 48 common_args.append('--builder-tag=%s' % build_info.builder_tag) | 48 common_args.append('--builder-tag=%s' % build_info.builder_tag) |
| 49 | 49 |
| 50 bot.RunTest('pub', build_info, | 50 bot.RunTest('pub', build_info, |
| 51 common_args + ['pub', 'pkg', 'dartdoc', 'docs']) | 51 common_args + ['pub', 'pkg', 'docs']) |
| 52 | 52 |
| 53 pkgbuild_build_info = bot.BuildInfo('none', 'vm', 'release', | 53 pkgbuild_build_info = bot.BuildInfo('none', 'vm', 'release', |
| 54 build_info.system, checked=False) | 54 build_info.system, checked=False) |
| 55 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, | 55 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, |
| 56 common_args + ['--append_logs', '--use-repository-packages', 'pkgbuild']) | 56 common_args + ['--append_logs', '--use-repository-packages', 'pkgbuild']) |
| 57 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, | 57 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, |
| 58 common_args + ['--append_logs', '--use-public-packages', 'pkgbuild']) | 58 common_args + ['--append_logs', '--use-public-packages', 'pkgbuild']) |
| 59 | 59 |
| 60 if __name__ == '__main__': | 60 if __name__ == '__main__': |
| 61 bot.RunBot(PubConfig, PubSteps) | 61 bot.RunBot(PubConfig, PubSteps) |
| OLD | NEW |