| 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 23 matching lines...) Expand all Loading... |
| 34 return bot.BuildInfo('none', 'vm', 'release', system, checked=True) | 34 return bot.BuildInfo('none', 'vm', 'release', system, checked=True) |
| 35 | 35 |
| 36 | 36 |
| 37 def PubSteps(build_info): | 37 def PubSteps(build_info): |
| 38 with bot.BuildStep('Build package-root'): | 38 with bot.BuildStep('Build package-root'): |
| 39 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 39 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 40 'packages'] | 40 'packages'] |
| 41 print 'Building package-root: %s' % (' '.join(args)) | 41 print 'Building package-root: %s' % (' '.join(args)) |
| 42 bot.RunProcess(args) | 42 bot.RunProcess(args) |
| 43 | 43 |
| 44 bot.RunTest('pub', build_info, ['pub', 'pkg', 'dartdoc', 'docs']) | 44 bot.RunTest('pub', build_info, ['--write_test_outcome_log', |
| 45 'pub', 'pkg', 'dartdoc', 'docs']) |
| 45 | 46 |
| 46 pkgbuild_build_info = bot.BuildInfo('none', 'vm', 'release', | 47 pkgbuild_build_info = bot.BuildInfo('none', 'vm', 'release', |
| 47 build_info.system, checked=False) | 48 build_info.system, checked=False) |
| 48 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, ['pkgbuild']) | 49 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, |
| 50 ['--append_logs', '--write_test_outcome_log', 'pkgbuild']) |
| 49 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, | 51 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, |
| 50 ['pkgbuild', '--use-public-packages']) | 52 ['--append_logs', '--write_test_outcome_log', |
| 53 '--use-public-packages', 'pkgbuild']) |
| 51 | 54 |
| 52 | 55 |
| 53 if __name__ == '__main__': | 56 if __name__ == '__main__': |
| 54 bot.RunBot(PubConfig, PubSteps) | 57 bot.RunBot(PubConfig, PubSteps) |
| OLD | NEW |