| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # 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 17 matching lines...) Expand all Loading... |
| 28 if not pub_pattern: | 28 if not pub_pattern: |
| 29 return None | 29 return None |
| 30 | 30 |
| 31 system = pub_pattern.group(1) | 31 system = pub_pattern.group(1) |
| 32 if system == 'win': system = 'windows' | 32 if system == 'win': system = 'windows' |
| 33 | 33 |
| 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 API Docs'): |
| 39 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 40 'api_docs'] |
| 41 print 'Generating API Docs: %s' % (' '.join(args)) |
| 42 bot.RunProcess(args) |
| 43 |
| 38 # TODO(rnystrom): Eventually test other targets here like 'utils'? | 44 # TODO(rnystrom): Eventually test other targets here like 'utils'? |
| 39 bot.RunTest('pub', build_info, ['pub']) | 45 bot.RunTest('pub', build_info, ['pub']) |
| 40 | 46 |
| 41 | 47 |
| 42 if __name__ == '__main__': | 48 if __name__ == '__main__': |
| 43 bot.RunBot(PubConfig, PubSteps) | 49 bot.RunBot(PubConfig, PubSteps) |
| OLD | NEW |