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 19 matching lines...) Expand all Loading... |
30 return None | 30 return None |
31 | 31 |
32 system = pub_pattern.group(1) | 32 system = pub_pattern.group(1) |
33 mode = 'release' | 33 mode = 'release' |
34 if system == 'win': system = 'windows' | 34 if system == 'win': system = 'windows' |
35 | 35 |
36 return bot.BuildInfo('none', 'vm', mode, system, checked=True, arch='x64') | 36 return bot.BuildInfo('none', 'vm', mode, system, checked=True, arch='x64') |
37 | 37 |
38 def PubSteps(build_info): | 38 def PubSteps(build_info): |
39 pub_location = os.path.join('third_party', 'pkg', 'pub') | 39 pub_location = os.path.join('third_party', 'pkg', 'pub') |
40 | |
41 with bot.BuildStep('Running pub tests'): | 40 with bot.BuildStep('Running pub tests'): |
42 bot.RunTestRunner(build_info, pub_location) | 41 bot.RunTestRunner(build_info, pub_location) |
43 | 42 |
| 43 dartdoc_location = os.path.join('third_party', 'pkg', 'dartdoc') |
| 44 with bot.BuildStep('Running dartdoc tests'): |
| 45 bot.RunTestRunner(build_info, dartdoc_location) |
| 46 |
44 if __name__ == '__main__': | 47 if __name__ == '__main__': |
45 bot.RunBot(PubConfig, PubSteps) | 48 bot.RunBot(PubConfig, PubSteps) |
OLD | NEW |