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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 # There are a number of big/integration tests in pkg, run with bigger timeout | 50 # There are a number of big/integration tests in pkg, run with bigger timeout |
51 common_args.append('--timeout=120') | 51 common_args.append('--timeout=120') |
52 | 52 |
| 53 if build_info.system == 'windows': |
| 54 common_args.append('-j1') |
53 opt_threshold = '--vm-options=--optimization-counter-threshold=5' | 55 opt_threshold = '--vm-options=--optimization-counter-threshold=5' |
54 if build_info.mode == 'release': | 56 if build_info.mode == 'release': |
55 bot.RunTest('pub and pkg ', build_info, | 57 bot.RunTest('pub and pkg ', build_info, |
56 common_args + ['pub', 'pkg', 'docs'], | 58 common_args + ['pub', 'pkg', 'docs'], |
57 swallow_error=True) | 59 swallow_error=True) |
58 bot.RunTest('pub and pkg optimization counter thresshold 5', build_info, | 60 bot.RunTest('pub and pkg optimization counter thresshold 5', build_info, |
59 common_args + ['--append_logs', opt_threshold, | 61 common_args + ['--append_logs', opt_threshold, |
60 'pub', 'pkg', 'docs'], | 62 'pub', 'pkg', 'docs'], |
61 swallow_error=True) | 63 swallow_error=True) |
62 else: | 64 else: |
(...skipping 10 matching lines...) Expand all Loading... |
73 build_info.system, checked=False) | 75 build_info.system, checked=False) |
74 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, | 76 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, |
75 common_args + ['--append_logs', '--use-repository-packages', | 77 common_args + ['--append_logs', '--use-repository-packages', |
76 'pkgbuild'], | 78 'pkgbuild'], |
77 swallow_error=True) | 79 swallow_error=True) |
78 | 80 |
79 # We are seeing issues with pub get calls on the windows bots. | 81 # We are seeing issues with pub get calls on the windows bots. |
80 # Experiment with not running concurrent calls. | 82 # Experiment with not running concurrent calls. |
81 public_args = (common_args + | 83 public_args = (common_args + |
82 ['--append_logs', '--use-public-packages', 'pkgbuild']) | 84 ['--append_logs', '--use-public-packages', 'pkgbuild']) |
83 if build_info.system == 'windows': | |
84 public_args.append('-j1') | |
85 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) | 85 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) |
86 | 86 |
87 if __name__ == '__main__': | 87 if __name__ == '__main__': |
88 bot.RunBot(PubConfig, PubSteps) | 88 bot.RunBot(PubConfig, PubSteps) |
OLD | NEW |