Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: tools/bots/pub.py

Issue 73113002: Generate docgen output along with api_docs as part of the build (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed where it's trying to upload to Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/docgen/lib/docgen.dart ('k') | utils/apidoc/docgen.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 17 matching lines...) Expand all
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
44 with bot.BuildStep('Build package-root'): 38 with bot.BuildStep('Build package-root'):
45 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 39 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
46 'packages'] 40 'packages']
47 print 'Building package-root: %s' % (' '.join(args)) 41 print 'Building package-root: %s' % (' '.join(args))
48 bot.RunProcess(args) 42 bot.RunProcess(args)
49 43
50 bot.RunTest('pub', build_info, ['pub', 'pkg', 'dartdoc', 'docs']) 44 bot.RunTest('pub', build_info, ['pub', 'pkg', 'dartdoc', 'docs'])
51 45
52 46
53 if __name__ == '__main__': 47 if __name__ == '__main__':
54 bot.RunBot(PubConfig, PubSteps) 48 bot.RunBot(PubConfig, PubSteps)
OLDNEW
« no previous file with comments | « pkg/docgen/lib/docgen.dart ('k') | utils/apidoc/docgen.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698