| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 common_args = ['--write-test-outcome-log'] | 47 common_args = ['--write-test-outcome-log'] |
| 48 if build_info.builder_tag: | 48 if build_info.builder_tag: |
| 49 common_args.append('--builder-tag=%s' % build_info.builder_tag) | 49 common_args.append('--builder-tag=%s' % build_info.builder_tag) |
| 50 | 50 |
| 51 # Pub tests currently have a lot of timeouts when run in debug mode. | 51 # Pub tests currently have a lot of timeouts when run in debug mode. |
| 52 # See issue 18479 | 52 # See issue 18479 |
| 53 if build_info.mode == 'release': | 53 if build_info.mode == 'release': |
| 54 bot.RunTest('pub', build_info, | 54 bot.RunTest('pub', build_info, |
| 55 common_args + ['pub', 'pkg', 'docs']) | 55 common_args + ['pub', 'pkg', 'docs']) |
| 56 else: |
| 57 bot.RunTest('pub', build_info, |
| 58 common_args + ['pkg', 'docs']) |
| 59 |
| 56 | 60 |
| 57 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, | 61 if build_info.mode == 'release': |
| 58 build_info.system, checked=False) | 62 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, |
| 59 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, | 63 build_info.system, checked=False) |
| 60 common_args + ['--append_logs', '--use-repository-packages', 'pkgbuild']) | 64 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, |
| 61 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, | 65 common_args + ['--append_logs', '--use-repository-packages', |
| 62 common_args + ['--append_logs', '--use-public-packages', 'pkgbuild']) | 66 'pkgbuild']) |
| 67 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, |
| 68 common_args + ['--append_logs', '--use-public-packages', 'pkgbuild']) |
| 63 | 69 |
| 64 if __name__ == '__main__': | 70 if __name__ == '__main__': |
| 65 bot.RunBot(PubConfig, PubSteps) | 71 bot.RunBot(PubConfig, PubSteps) |
| OLD | NEW |